Nginx not running with no error message

前端 未结 8 1145
深忆病人
深忆病人 2021-01-30 06:15

I am trying to start my nginx server. When I type \"$> /etc/init.d/nginx start\", I have a message appearing \"Starting nginx:\", and then nothing happens. There is no error mes

8条回答
  •  礼貌的吻别
    2021-01-30 06:52

    You should probably check for errors in /var/log/nginx/error.log.

    In my case I did no add the port for ipv6. You should also do this (in case you are running nginx on a port other than 80): listen [::]:8000 default_server ipv6only=on;

提交回复
热议问题