首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Nginx测试成功,但我无法重新启动

Nginx测试成功,但我无法重新启动
EN

Server Fault用户
提问于 2015-03-18 06:54:49
回答 1查看 448关注 0票数 0
代码语言:javascript
复制
nginx: [warn] conflicting server name "lolnews.com.br" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "lolnews.com.br" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@lolnews2:/etc/nginx/sites-enabled# service nginx restart
 * Restarting nginx nginx     

为什么要这样?

EN

回答 1

Server Fault用户

发布于 2015-03-18 14:49:33

  • 停止Nginx
  • 检查nginx是否仍在运行:ps faux | grep nginx
  • 如果nginx在停止后运行,则关闭PID。
  • 检查其他进程是否使用端口80 (或在nginx中使用的另一个端口) netstat -tlnp | grep 80 lsof -i :80
  • 如果有另一个进程/服务使用端口80,则可以在不需要时停止它。
  • 启动nginx (只启动,不重新启动),如果错误持续存在,请检查日志: /var/log/nginx/error.log (默认位置)
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/676323

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档