如何在workerman下面Application_A中,重啟Application_B中的某個worker?
status 命令可以看到哪些進程是屬于Application_B的,對這些進程發(fā)送SIGINT信號可以安全重啟對應的進程
kill -SIGINT $pid
這個pid從哪里找呢?
status 命令能看到
謝啦,結貼~
PS: 在worker里,使用 posix_getpid() 就可以獲取到當前 worker 的 pid 了
status 命令可以看到