應(yīng)安裝的文件已經(jīng)安裝,線上測(cè)試成功,但運(yùn)行時(shí)出現(xiàn)以下錯(cuò)誤
Fatal error: Uncaught exception 'Exception' with message 'can not save pid to /Users/qgkjtech/PhpstormProjects/workemantext/Workerman-master/Desktop/_Users_qgkjtech_PhpstormProjects_workemantext_http_test.php.pid' in /Users/qgkjtech/PhpstormProjects/workemantext/Workerman-master/Worker.php:907
Stack trace:
#0 /Users/qgkjtech/PhpstormProjects/workemantext/Workerman-master/Worker.php(429): Workerman\Worker::saveMasterPid()
#1 /Users/qgkjtech/PhpstormProjects/workemantext/http_test.php(19): Workerman\Worker::runAll()
/Users/qgkjtech/PhpstormProjects/workemantext/Workerman-master/Desktop/
這個(gè)目錄不存在或者workerman沒(méi)有寫權(quán)限。
workerman要在這個(gè)目錄寫一個(gè)pid文件記錄workemran主進(jìn)程pid
你可以通過(guò)Worker::pidFile來(lái)更改pid路徑,參考手冊(cè) http://doc.workerman.net/315139