nginx常见的启动错误

错误一:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

     错误原因:nginx重复重启,自己占用了80端口

     解决办法:关掉nginx所有进程,然后重新打开

           #killall -9 nginx    //杀掉所有nginx进程

           #/usr/local/nginx/sbin/nginx  //从新启动nginx

 

错误二:nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored

       错误原因:域名重复,修改一下域名重启即可

你可能感兴趣的:(nginx,centos,gateway,networking,DNS服务器)