1

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

4

2 Answers 2

2

Won't work.

http://www.pcworld.com/article/3050473/windows/heres-how-windows-10s-ubuntu-based-bash-shell-will-actually-work.html

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.”

1
  • 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. =/ Jul 11, 2016 at 14:59
4

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.

1
  • See the revised comment above.
    – Shaidar
    Oct 11, 2016 at 14:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .