当前位置:首页 > 服务器 > 正文

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

很久以前网站会出现如下错误:
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管理员经常看的地方,是随着系统自动启动的服务,程序等。可以看看:
cd /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) 输入,输出日志记录…

开启后,一切恢复正常!现在自己的服务器端技术还是有很多地方使用的不够。需要多学习使用!不过相比以前在同花顺,个人觉得服务器端技术水平还是有了不少提高,至少接触了解的东西多了。唯一遗憾的是高并发的项目还没贴切接触过。

6 条评论

  1. 5楼2014-07-03 上午1:21回复
    google plus agenda

    Hello there! This post could not be written any better! Reading through this post reminds me
    of my previous room mate! He always kept talking about
    this. I will forward this page to him. Pretty sure he will have a good read.
    Thank you for sharing!

  2. 4楼2014-07-17 上午12:26回复
    aquarius age psychics

    Have you ever considered publishing an ebook or guest authoring on other sites?

    I have a blog based upon on the same ideas you
    discuss and would love to have you share some stories/information. I
    know my visitors would enjoy your work. If you’re even remotely interested,
    feel free to send mee an e-mail.

    • 2014-07-20 下午7:23回复
      admin

      ok

  3. 地板2014-07-17 下午9:48回复
    venus factor diet plan review

    Hello, ӏ log on to your blog like every weeқ. Yoour story-telling
    style is awesome, keep up the gοod work!

  4. 板凳2014-07-20 上午1:44回复
    Blondell

    Quality content is the crucial to attract the viewers to pay
    a quick visit the website, that’s what this web page is providing.

  5. 沙发2014-07-21 下午5:23回复
    john barban venus factor review

    Рretty! This was an incredibly wonderful post.
    Thɑnks fоr рroviding this info.

发表评论