概述
环境
问题
将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 7 编译安装Nginx1.10.2 脚本启动失败解决思路所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复