环境
问题
将nginx脚本放入/etc/init.d/中,在root下使用
/etc/init.d/nginx start
Starting nginx (via systemctl): #卡住
检测服务状态如下输出:
[root@nginx]# service nginx status
● 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; bad; vendor preset: disabled)
Active: inactive (dead) since Wed 2017-01-18 08:37:35 UTC; 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 18249 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nginx.service
├─7276 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
└─7277 nginx: worker process
Jan 18 08:34:26 systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
Jan 18 08:34
最后
以上就是任性猎豹最近收集整理的关于linux脚本登录启动失败,CentOS 7 编译安装Nginx1.10.2 脚本启动失败解决思路的全部内容,更多相关linux脚本登录启动失败,CentOS内容请搜索靠谱客的其他文章。
发表评论 取消回复