1. 暂停服务
1.1 不影响在途业务
> disable service 10.100.33.21:8480 graceFul yes
Done
1.2 强制停止服务
> disable service 10.100.33.21:8480 graceFul no
Done
2. 开启服务
> enable service 10.100.33.21:8480
Done
3. 检查服务状态
3.1 服务已停止
> show service 10.100.33.21:8480
10.100.33.21:8480 (10.100.33.21:8480) - HTTP
State: OUT OF SERVICE
3.2 服务正在停止
> show service 10.100.33.21:8480
10.100.33.21:8480 (10.100.33.21:8480) - HTTP
State: GOING OUT OF SERVICE (Graceful, Out Of Service in 8 seconds)
3.3 服务正常
> show service 10.100.33.21:8480
10.100.33.21:8280 (10.100.33.21:8480) - HTTP
State: UP
3.4 服务未启动
> show service 10.100.33.21:8480
10.100.33.21:8480 (10.100.33.21:8480) - HTTP
State: DOWN
网友评论