使用Jenkins部署的PHP项目经常无法访问?

新手上路,请多包涵

项目用Jenkins拉Git项目,然后软链接到web目录。然后用php-fpm执行。

Unable to open primary script: /home/www/test/public/index.php (Operation not permitted)" while reading response header from upstream, client: xx.xx.xx.xx, server: xx.xx.xx.xx, request: "GET /api/warning/wechat HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xx.xx.xx.xx:xx", referrer: "http://xx.xx.xx.xx:xx/"

nginx经常报这种错误,再次刷新有可能不报错也有可能报错

这时候重启 php-fpm 就能正常一段时间

请问大家有什么建议吗

阅读 3.5k
2 个回答

是不是在拉取项目的过程中进行的访问,这时候正在执行文件更新操作?

新手上路,请多包涵

报错没权限啊,很明显啊权限不够

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题