点击登录
  • 欢迎访问无限星辰技术博客,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏无限星辰吧
  • 好集导航开张了,传送门:好集导航

The page you are looking for is temporarily unavailable.Please try again later.

LINUX服务器 crx349 5127次浏览 0个评论 扫描二维码

今天网站突然出现如下错误:

The page you are looking for is temporarily unavailable.Please try again later.

很奇怪,我对服务器端的技术不是很熟悉,于是查询了下google,在https://wiki.archlinux.org/index.php/Nginx

上面的解决方法:

Error: The page you are looking for is temporarily unavailable. Please try again later.

This is because the FastCGI server has not been started.

如何解决呢?

刚开始我怀疑是不是nginx挂了,我首先通过ps aux | grep nginx,结果出现:

root      3769  0.0  0.0   5760   692 ?        Ss   Apr21   0:00 nginx: master process /usr/local/nginx/sbin/nginx

www       3770  0.0  0.1  18680 14252 ?        S    Apr21   0:03 nginx: worker process

www       3771  0.0  0.1  18680 14252 ?        S    Apr21   0:03 nginx: worker process

www       3772  0.0  0.1  18712 14276 ?        S    Apr21   0:03 nginx: worker process

www       3774  0.0  0.1  18680 14248 ?        S    Apr21   0:03 nginx: worker process

www       3776  0.0  0.1  18712 14240 ?        S    Apr21   0:03 nginx: worker process

www       3777  0.0  0.1  18680 14252 ?        S    Apr21   0:03 nginx: worker process

www       3778  0.0  0.1  18680 14232 ?        S    Apr21   0:02 nginx: worker process

root     24068  0.0  0.0   5196   756 pts/1    S+   14:33   0:00 grep nginx

 

可见nginx是正常的,本来打算重启nginx的:

/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf的,

 

突然觉得有没有其他方法,有同事提示先在一个目录下运行下test.html和test.php,结果html可以运行,php无法运行。

证实是php没有启动,我刚才也检测过php的进程,的确是没有php进程,这台服务器我不熟悉,同事帮忙查看了下

cd /etc/init.d,就是web管理员经常看的地方,是随着系统自动启动的服务,程序等。可以看看:

http://blog.wgzhao.com/2008/12/27/talk-about-rc-local.html的《说说?/etc/rc.d/rc.local》

找到:

/usr/local/php/sbin/php-fpm start,首先什么是php-fpm呢?

就是FastCGI Process Manager,是一种可选的PHP FastGCI执行模式,有一点很有特点的应用,尤其是一个繁忙的网站中:

(1) 可适应的进行再生(NEW!)

(2) 基本的统计功能(Apache’s mod_status)

(3) 高级进程管理功能,能够优雅的停止/开始

(4) 能够使用不同的工作用户和不同的php.ini

(5) 输入,输出日志记录…

 

开启后,一切恢复正常!自己的服务器端技术还是有很多地方使用的不够。需要多学习使用!


无限星辰 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明The page you are looking for is temporarily unavailable.Please try again later.!
喜欢 (0)
[]
分享 (0)

您必须 登录 才能发表评论!