修改文件立即訪問接口后
每次都出現(xiàn),百度了沒啥解決方案。。
process terminated with ERROR: E_ERROR "Uncaught RuntimeException: SplFileInfo::getMTime(): stat failed /process/Monitor.php:94
已經(jīng)找到問題了,docker下的文件,不知道為什么,上一秒還正常,下一秒就No such file or directory,在想解決方案
已解決此問題,此問題由nginx轉(zhuǎn)發(fā)引致,停掉轉(zhuǎn)發(fā)后正常
如果同時出現(xiàn)間隔一次請求正常,請求一次又失敗400的錯誤,或請求中包含特殊字符都會導(dǎo)致錯誤,修改官方推薦的nginx配置為如下:
upstream webman {
server 127.0.0.1:8787;
keepalive 10240;
}
server {
server_name 站點域名;
listen 80;
access_log off;
root /your/webman/public;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Connection "";
if ($request_uri ~ ^/(.)$){
proxy_pass http://webman;
}
}
}