Nginx not running with no error message

前端 未结 8 1251
深忆病人
深忆病人 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:53

    One case you check that nginx hold on 80 number port in system by default , check if you have any server like as apache or anything exist on system that block 80 number port thats the problem occurred.

    1 .You change port number on nginx by this way,

    sudo vim /etc/nginx/sites-available/default

    Change 80 to 81 or anything,

    1. Check everything is ok by ,

    sudo nginx -t

    1. Restart server

    sudo service nginx start

    1. Check the status of nginx:

    sudo service nginx status

    Hope that will work

提交回复
热议问题