因?yàn)槲业腶pplication里面有http應(yīng)用和tcp應(yīng)用,然后這個(gè)文件的vendor/workerman/workerman/Worker.php:1385,里面調(diào)用safeEcho的時(shí)候報(bào)這個(gè)錯(cuò)誤了,因?yàn)镠ttp協(xié)議里面有init的時(shí)候有調(diào)用session_start方法,試了各種方法,注釋兩個(gè)文件的啊 都不行。
請各位指教
嗯嗯 都是沒有用原生的 謝謝啊,我看錯(cuò)誤日志的時(shí)候,我發(fā)現(xiàn)是先報(bào)的去讀取主進(jìn)程id的時(shí)候( Get master process PID),報(bào)那個(gè)主進(jìn)程PID的文件找不到的錯(cuò)誤,然后接著報(bào)了這個(gè)session的錯(cuò)誤!
但是我打開PID文件的路徑(/home/wwwroot/demo.api.cn/vendor/workerman/workerman/../_home_wwwroot_demo.api.cn_service_start.php.pid)是可以找到的啊,但是文件的所屬是root且可讀可寫,但是其他用戶都有讀的權(quán)限。而且我應(yīng)用啟動(dòng)起來的都是root,很納悶啊。
下面是具體的錯(cuò)誤日志。
file_get_contents(/home/wwwroot/demo.api.cn/vendor/workerman/workerman/../_home_wwwroot_demo.api.cn_service_start.php.pid): failed to open stream: No such file or directory
session_start(): Cannot send session cookie - headers already sent by (output started at /home/wwwroot/demo.api.cn/service/start.php:107)
session_start(): Cannot send session cache limiter - headers already sent (output started at /home/wwwroot/demo.api.cn/service/start.php:107)
希望老大能夠答疑解惑下。
謝謝