如何停止Strongloop服务?

时间:2015-12-23 22:39:53

标签: strongloop

当我检查状态时,我在这里显示了两个strongloop服务:

 user-3340 ~/projects/loopback/places-api $ slc ctl -C http://IPADDRESS:8701 status
Service ID: 1
Service Name: placesAPI
Environment variables:
  No environment variables defined
Instances:
    Version  Agent version  Debugger version  Cluster size  Driver metadata
     5.1.0       2.0.2             n/a              4             N/A
Processes:
       ID      PID  WID  Listening Ports  Tracking objects?  CPU profiling?  Tracing?  Debugging?
    1.1.1112  1112   0
    1.1.1244  1244   6     0.0.0.0:3001
    1.1.2567  2567   77    0.0.0.0:3001
    1.1.5386  5386  233

Service ID: 2
Service Name: Service2
Environment variables:
  No environment variables defined
Instances:
    Version  Agent version  Debugger version  Cluster size  Driver metadata
     5.1.0       2.0.2             n/a              4             N/A
Processes:
       ID      PID  WID  Listening Ports  Tracking objects?  CPU profiling?  Tracing?  Debugging?
    2.1.1117  1117   0
    2.1.1231  1231   5
    2.1.1279  1279   6
    2.1.2576  2576   77

我想知道的是,如何禁用service2?是否有我可以使用的命令行命令?

感谢。

1 个答案:

答案 0 :(得分:2)

您需要remove的{​​{1}}子命令。像这样:

slc ctl

您可以在https://docs.strongloop.com/display/NODE/slc+ctl或通过slc ctl -C http://IPADDRESS:8701 remove 2

在线查找文档和其他命令