0

Currently what I have done is installed lamp on ubuntu using the windows subsystem for Linux. However when I close ubuntu or restarted the computer, the web server is still active. Is there any way to make it so that the server is only running then I open the ubuntu application?

  • 1
    If you are going to run a service within the WSL instance then you should stop the LAMP service manually, before you close the UWP instance. Closing the WSL instance does not end the process, it should only suspend the instance, since UWP applications don't typically close when their window are closed. – Ramhound Sep 17 '18 at 18:56
  • @Ramhound Ok, if I did stop the services manually would there be any default Linux services that would continue to run and use up resources or would those stop when closed? I'm just concerned about protentional battery life drains if unwanted services are still running. – Leon W Sep 17 '18 at 20:01
  • 1
    As I don't have a WSL instance in front of me to verify, what services by default are installed, you should run the command to see that for yourself. Although I seem to recall no services running when I last played with my WSL instance. – Ramhound Sep 17 '18 at 20:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.