今天在安装完成LNMP环境之后,配置了nginx配置文件,需要重新启动nginx, systemctl start nginx.service,但是报了如下错误:Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. 于是systemctl status nginx.service 查看具体错误显示: Starting nginx: nginx: [emerg] open() “/home/logs/nginx/error.log” failed (2: No such file or directory)
于是到/etc/sysconfig/selinux 中修改 “SELINUX=disabled” 然后保存,重新启动nginx生效。
详细解决方案
Job for nginx.service failed because the control process exited with error code. See “systemctl stat
热度:20 发布时间:2024-02-09 05:21:28.0
相关解决方案
- 小弟我想做一个多功能web service client
- 请问registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister
- Servlet.service() for servlet [jsp] in context with path解决方案
- java报错Syntax error on token "return" invalid Type解决方案
- The server encountered an internal error () that prevented it from fulfilling th解决方案
- struts2的Action怎么返回指定路径的jsp或html,而不是返回SUCCESS、ERROR
- 'Update Progress' has encountered a problem An internal error has occurred解决方案
- JSP向SQL数据库中写下数据时提示:Network error IOException: Connection refused: connect
- web service 第一天接触不懂 仍是那个访问天气预报的例子 代码很简单
- DBCP borrowObject failed: java.sql.SQLException: Io 错误: The Network Adapter
- Error creating bean with name 'sessionFactory' defined in ServletContext resourc解决方法
- servlet+jquery1.4.2(ajax error?)解决方案
- Parse error in application web.xml,该如何解决
- java itext导出报Connection reset by peer: socket write error,该怎么处理
- Error reading resource: com/user/User.hbm.xml,该怎么解决
- Web Service 错误:服务器未能识别 HTTP 头 SOAPAction 的值: http://tempuri.org/
- fatal error; call to a member function query() on a non-object异常求回答啊 php+sqlite
- Error creating bean with name 'sessionFactory' defined in class path resource解决方法
- 大家帮帮忙呀The server encountered an internal error () that prevented it解决方法
- Server Apache Tomcat v6.0.35 at localhost failed to start
- web service No services have been found.解决方法
- 【100分】怎么监控多台服务器的log,alert,error
- SOS-(奇怪现象)服务器暂不可用500 internal server error,该怎么解决
- tomcat没法运行Could not publish to the server. Error while expanding
- Context [] startup failed due to previous errors解决方案
- JSF中javax.faces.el.PropertyNotFoundException: Error getting property的有关问题
- Syntax error on token "{" { expected after this token,该怎么解决
- WEBstruts The server encountered an internal error () that prevented it fr解决思路
- 学习Web Service,用哪种框架好?AXIS,XFire,CXF?该如何处理
- 'Update Progress' has encountered a problem An internal error has occurred解决方案