service nginx start 报错,请仔细看报错信息,万分感谢

问答中心分类: Nginxservice nginx start 报错,请仔细看报错信息,万分感谢
charles 5月前询问

service nginx start|stop|restart   等等, 启动会这个错。

Job for nginx.service failed because a configured resource limit was exceeded. See "systemctl status nginx.service" and "journalctl -xe" for details.
[FAIL
[root@localhost showdoc]# systemctl status nginx.service
● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
Loaded: loaded (/etc/rc.d/init.d/nginx)
Active: failed (Result: resources) since Wed 2016-11-23 11:04:24 CST; 19min ago
Docs: man:systemd-sysv-generator(8)
Process: 6852 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=0/SUCCESS)

Nov 23 11:04:24 localhost.localdomain systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
Nov 23 11:04:24 localhost.localdomain systemd[1]: PID file /var/run/nginx.pid not readable (yet?) after start.
Nov 23 11:04:24 localhost.localdomain systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
Nov 23 11:04:24 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
Nov 23 11:04:24 localhost.localdomain systemd[1]: nginx.service failed

nginx的配置是没问题的。

Nov 23 11:04:24 localhost.localdomain systemd[1]: nginx.service failed.
[root@localhost showdoc]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

详细看 systemctl status nginx.service  的问题。 检查了都没问题。 至今无解。