Nginx报错:Sorry,thepageyouarelookingforiscurrentlyunavailable.Pleasetryagainlater._马立杰_新浪博客...
Nginx报错:Sorry,thepageyouarelookingforiscurrentlyunavailable.Pleasetryagainlater.原文链接:http://www.orcy.net.cn/2019/12/nginx报错:sorry-the-page-you-are-looking-for-is-currently-unavailable-please-tr...
·
Nginx报错:Sorry,thepageyouarelookingforiscurrentlyunavailable.Pleasetryagainlater.
Nginx源码编译安装,php7.1源码编译安装,nginx配置域名虚拟主机后,访问html页面正常,访问php页面时会有报错提醒:
查询nginx虚拟主机配置,确认正确,配置文件如下:
[error] 11560#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 10.24.10.19, server: my.orcy.net.cn, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my.orcy.net.cn"
确认应该是php-fpm未正常运行,查看php-fpm状态
#ps aux|grep php-fpm
果然是,php-fpm服务未正常运行,手动启动php-fpm
网页访问正常,问题解决,如下图,但是php-fpm无法后台运行,退出或crtl+c会导致php-fpm结束,如何让php-fpm后台运行,请看【 启动php-fpm无法后台运行,退出或crtl+c会导致php-fpm结束解决办法 】
————————
nginx虚拟主机配置文件下载
nginx+php虚拟主机配置文件: http://u1.share.orcy.net.cn/file/12559096-411046174
————————
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献6条内容
所有评论(0)