0

这很糟糕:

$ thin restart -p 4000 -s 3 -d;
Stopping server on 0.0.0.0:4000 ... 
Sending QUIT signal to process 13375 ... 
>> Exiting!
Stopping server on 0.0.0.0:4001 ... 
Sending QUIT signal to process 13385 ... 
>> Exiting!
Stopping server on 0.0.0.0:4002 ... 
Sending QUIT signal to process 13397 ... 
>> Exiting!
Starting server on 0.0.0.0:4000 ... 
Starting server on 0.0.0.0:4001 ... 
Starting server on 0.0.0.0:4002 ... 

有没有办法循环通过每台服务器并一次重新启动一个?

4

1 回答 1

2

即时通讯

> thin
Command required
Usage: thin [options] start|stop|restart|config

[...]

Cluster options:
    -s, --servers NUM                Number of servers to start
    -o, --only NUM                   Send command to only one server of the cluster
    -C, --config FILE                Load options from config file
    -O, --onebyone                   Restart the cluster one by one (only works with restart command)
于 2013-06-03T02:00:28.790 回答