首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ubuntu重启nginx nginx [失败]

ubuntu重启nginx nginx [失败]
EN

Stack Overflow用户
提问于 2016-04-28 20:02:29
回答 1查看 2K关注 0票数 0

这是我第一次使用nginx,我试着在网上搜索来解决这个问题……

代码语言:javascript
运行
复制
root@VM-176-248-ubuntu:/# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

root@VM-176-248-ubuntu:/# tail -f /var/log/nginx/error.log 
2016/04/28 19:00:54 [emerg] 15475#0: directive "try_files" is not terminated by ";" in /etc/nginx/conf.d/micro-blog_nginx.conf:8
2016/04/28 19:01:33 [emerg] 15549#0: directive "try_files" is not terminated by ";" in /etc/nginx/conf.d/micro-blog_nginx.conf:8
2016/04/28 19:15:00 [notice] 16436#0: signal process started
2016/04/28 19:22:30 [notice] 16969#0: signal process started

root@VM-176-248-ubuntu:/# /etc/init.d/nginx restart
 * Restarting nginx nginx                                                        [fail] 

谁能告诉我怎么才能解决这个问题呢?

EN

回答 1

Stack Overflow用户

发布于 2016-04-28 20:37:21

我使用ps -e发现有两个nginx进程正在运行。

kill -HUP <pid>杀了他们。问题已经解决了

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36914069

复制
相关文章

相似问题

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