I installed the windows 10 technical preview to use the Ubuntu subsystem, but upon installing nginx I can not start the service.

Here is the error log:

enter image description here


Won't work.


As Microsoft notes, “This is a developer toolset to help you write and build all your code for all your scenarios and platforms.” It’s not a full Ubuntu virtual machine. You can’t use it to host servers, as you could on Linux. If you need that, you can always install Linux in a virtual machine using Microsoft’s Hyper-V technology, VirtualBox, VMware, or something similar.”

  • I actually have a LAMP stack up and running so you can run both a web and MySQL server. I haven't been able to get Nginx up and running, though. =/ – Magnus Eriksson Jul 11 '16 at 14:59

Comment out the ipv6 line in your sites-available conf and it will work like a charm.

  1. Open your bash console
  2. Run command: apt-get install nginx
  3. Run command: vim /etc/nginx/sites-available/default
  4. Comment out the ipv6 line (in bold):

    $server { 
        listen 80 default_server; 
    #   listen [::]:80 default_server ipv6only=on;
  5. Run command: nginx

For good measure I also changed it from port 80 to 8080 and was able to run a curl on it.

  • See the revised comment above. – Shaidar Oct 11 '16 at 14:33

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.