cli下 運(yùn)行php start.php reload (平滑重啟)
在Event.php文件中的 onMessage回調(diào)中使用new class
發(fā)現(xiàn)class文件中的代碼修改之后,php start.php reload命令后
class文件中的代碼沒有重效,執(zhí)行的還是修改之前的代碼
[attach]268[/attach]
reload后運(yùn)行php start.php status貼下
[root@iZ28jc59k68Z get_work]#
[root@iZ28jc59k68Z get_work]# php start.php reload
Workerman[start.php] reload
Workerman[start.php] reload
[root@iZ28jc59k68Z get_work]# php start.php status
Workerman[start.php] status
---------------------------------------GLOBAL STATUS--------------------------------------------
Workerman version:3.3.0 PHP version:5.6.13
start time:2016-04-05 14:45:52 run 0 days 0 hours
load average: 0.12, 0.03, 0.01 event-loop:select
4 workers 10 processes
worker_name exit_status exit_count
YourAppBusinessWorker 0 20
YourAppGateway 0 0
Register 0 0
FileMonitor 0 0
---------------------------------------PROCESS STATUS-------------------------------------------
pid memory listening worker_name connections total_request send_fail throw_exception
18720 0.75M none YourAppBusinessWorker 5 1 0 0
18721 0.75M none YourAppBusinessWorker 5 1 0 0
18722 0.75M none YourAppBusinessWorker 5 1 0 0
18723 0.75M none YourAppBusinessWorker 5 1 0 0
18277 0.75M text://0.0.0.0:8282 YourAppGateway 5 116 0 0
18278 1M text://0.0.0.0:8282 YourAppGateway 8 208 0 0
18279 0.75M text://0.0.0.0:8282 YourAppGateway 5 116 0 0
18280 0.75M text://0.0.0.0:8282 YourAppGateway 5 116 0 0
18281 0.75M text://0.0.0.0:1238 Register 8 28 0 0
18282 0.75M none FileMonitor 0 0 0 0
[root@iZ28jc59k68Z get_work]#