已解答
发布

执行service nginx restart ,Stopping 会显示OK,Starting 不显示。
执行service nginx stop后在执行start,stop会显示OK,start不显示ok。
 
[root@AY1303121541002034ed ~]# service nginx restart
the configuration file /usr/local/tengine/conf/nginx.conf syntax is ok
configuration file /usr/local/tengine/conf/nginx.conf test is successful
Stopping nginx: [ OK ]
Starting nginx:
[root@AY1303121541002034ed ~]# service nginx restart
the configuration file /usr/local/tengine/conf/nginx.conf syntax is ok
configuration file /usr/local/tengine/conf/nginx.conf test is successful
Stopping nginx: [ OK ]
Starting nginx:
[root@AY1303121541002034ed ~]# service nginx restart
the configuration file /usr/local/tengine/conf/nginx.conf syntax is ok
configuration file /usr/local/tengine/conf/nginx.conf test is successful
Stopping nginx: [ OK ]
Starting nginx:
[root@AY1303121541002034ed ~]# service nginx stop
Stopping nginx: [ OK ]
[root@AY1303121541002034ed ~]# service nginx start
Starting nginx: [ OK ]
[root@AY1303121541002034ed ~]# service nginx stop
Stopping nginx: [ OK ]
[root@AY1303121541002034ed ~]# service nginx start
[root@AY1303121541002034ed ~]# service nginx stop
Stopping nginx: [ OK ]
[root@AY1303121541002034ed ~]# service nginx start
[root@AY1303121541002034ed ~]# service nginx start
[root@AY1303121541002034ed ~]# service nginx stop
Stopping nginx: [ OK ]
[root@AY1303121541002034ed ~]# service nginx start

1 答案

发布
管理员 2016-07-20

改配置后,service nginx reload 即可,这个可能有这个问题。

#1

请登录或者 注册 来提交答案