service nginx 有问题

问答中心分类: OneinStackservice nginx 有问题
heixiu asked 8 年 ago
执行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 Answers
oneinstack answered 8 年 ago
改配置后,service nginx reload 即可,这个可能有这个问题。