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
————————