最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

[已解决]访问nginx网站出错:The page you are looking for is temporarily unavailable. Please try again later

nginx crifan 10409浏览 0评论

此处已经是:

 html ll
total 28K
-rw-r–r– 1 root root 3.6K Jun 17  2015 404.html
-rw-r–r– 1 root root 3.7K Jun 17  2015 50x.html
-rw-r–r– 1 root root 3.7K Jun 17  2015 index.html
drwxr-xr-x 3 root root 4.0K Aug 10 17:46 jiandaoweixin
-rw-r–r– 1 root root  368 Jun 17  2015 nginx-logo.png
-rw-r–r– 1 root root 2.8K Jun 17  2015 poweredby.png
drwxr-xr-x 5 root root 4.0K Aug 13 14:36 sipevents
 html pwd
/usr/share/nginx/html
 html ls sipevents 
creatEvent.html  css  img  index.html  js  showEvent.html
 html ls sipevents -l
total 40
-rwxrwxrwx 1 root root 9117 Aug 13 14:34 creatEvent.html
drwxr-xr-x 2 root root 4096 Aug 12 10:20 css
drwxr-xr-x 3 root root 4096 Aug 12 11:00 img
-rwxrwxrwx 1 root root 9518 Aug 13 14:54 index.html
drwxr-xr-x 2 root root 4096 Aug 12 10:19 js
-rwxrwxrwx 1 root root 3876 Aug 13 14:52 showEvent.html
 html 
 sipevents ll
total 40K
-rw-r–r– 1 root root 9.0K Aug 13 14:34 creatEvent.html
drwxr-xr-x 2 root root 4.0K Aug 12 10:20 css
drwxr-xr-x 3 root root 4.0K Aug 12 11:00 img
-rw-r–r– 1 root root 9.3K Aug 13 14:54 index.html
drwxr-xr-x 2 root root 4.0K Aug 12 10:19 js
-rw-r–r– 1 root root 3.8K Aug 13 14:52 showEvent.html
 sipevents chmod +777 *.html     
chmod: invalid mode: `+777′
Try `chmod –help’ for more information.
 sipevents chmod 7777  *.html 
 sipevents ll
total 40K
-rwxrwxrwx 1 root root 9.0K Aug 13 14:34 creatEvent.html
drwxr-xr-x 2 root root 4.0K Aug 12 10:20 css
drwxr-xr-x 3 root root 4.0K Aug 12 11:00 img
-rwxrwxrwx 1 root root 9.3K Aug 13 14:54 index.html
drwxr-xr-x 2 root root 4.0K Aug 12 10:19 js
-rwxrwxrwx 1 root root 3.8K Aug 13 14:52 showEvent.html

但是访问网址始终出错:

http://hd.webonn.com/sipevents

nginx error!
The page you are looking for is temporarily unavailable. Please try again later.
Website Administrator
Something has triggered an error on your website. This is the default error page for nginx that is distributed with EPEL. It is located /usr/share/nginx/html/50x.html
You should customize this error page for your own site or edit the error_page directive in the nginx configuration file /etc/nginx/nginx.conf.

http://115.29.173.126/sipevents

http://hd.webonn.com

搜:

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

解决nginx的The page you are looking for is temporarily unavailable错误办法 – sondx的专栏 – 博客频道 – CSDN.NET

The page you are looking for is temporarily unavailable.Please try again later. – 徐杰的专栏 – 博客频道 – CSDN.NET

 html ps aux | grep nginx
root      1646  0.0  0.0  96328  1656 ?        Ss   Jun05   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx     1647  0.0  0.0  97096  3004 ?        S    Jun05   0:09 nginx: worker process                   
root     19777  0.0  0.0  31488  2984 ?        S    Jun13   0:00 nginx: master process nginx -g daemon off;
root     19778  0.0  0.0  31896  1956 ?        S    Jun13   2:51 nginx: worker process
root     19779  0.0  0.0  31896  1948 ?        S    Jun13   4:15 nginx: worker process
root     29022  0.0  0.0 103368   824 pts/1    S+   15:13   0:00 grep –color=auto –exclude-dir=.bzr –exclude-dir=CVS –exclude-dir=.git –exclude-dir=.hg –exclude-dir=.svn nginx

一个简单的web(nginx)报错处理过程-xueleixu-ChinaUnix博客

nginx – Getting "The page you are looking for is temporarily unavailable. Please try again later" – Server Fault

去看看此处的配置:

 html cat /etc/nginx/nginx.conf
# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/
user              nginx;
worker_processes  1;
error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;
pid        /var/run/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;
    log_format  main  ‘$remote_addr – $remote_user [$time_local] "$request" ‘
                      ‘$status $body_bytes_sent "$http_referer" ‘
                      ‘"$http_user_agent" "$http_x_forwarded_for"’;
    access_log  /var/log/nginx/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;
    #gzip  on;
    # Load config files from the /etc/nginx/conf.d directory
    # The default server is in conf.d/default.conf
    include /etc/nginx/conf.d/*.conf;
}

Page temporarily unavailable – NGINX – Stack Overflow

Nginx with PHP5, infophp temporarily unavailable | Howtoforge – Linux Howtos and Tutorials

看看最近的error的log:

 html tail /var/log/nginx/error.log
2016/08/13 15:09:39 [error] 1647#0: *29421 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /nginx-logo.png HTTP/1.1", upstream: "http://127.0.0.1:8080/nginx-logo.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:09:39 [error] 1647#0: *29420 no live upstreams while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /poweredby.png HTTP/1.1", upstream: "http://localhost/poweredby.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:09:39 [error] 1647#0: *29424 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /poweredby.png HTTP/1.1", upstream: "http://127.0.0.1:8080/poweredby.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:09:39 [error] 1647#0: *29424 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /poweredby.png HTTP/1.1", upstream: "http://127.0.0.1:8080/poweredby.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:09:39 [error] 1647#0: *29425 no live upstreams while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /nginx-logo.png HTTP/1.1", upstream: "http://localhost/nginx-logo.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:14:25 [error] 1647#0: *29428 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "hd.webonn.com"
2016/08/13 15:14:25 [error] 1647#0: *29428 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "hd.webonn.com"
2016/08/13 15:14:25 [error] 1647#0: *29431 no live upstreams while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /poweredby.png HTTP/1.1", upstream: "http://localhost/poweredby.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:14:25 [error] 1647#0: *29432 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /nginx-logo.png HTTP/1.1", upstream: "http://127.0.0.1:8080/nginx-logo.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"
2016/08/13 15:14:25 [error] 1647#0: *29432 connect() failed (111: Connection refused) while connecting to upstream, client: 58.208.66.234, server: file.webonn.com, request: "GET /nginx-logo.png HTTP/1.1", upstream: "http://127.0.0.1:8080/nginx-logo.png", host: "hd.webonn.com", referrer: "http://hd.webonn.com/"

nginx connect() failed (111: Connection refused) while connecting to upstream

遇到问题—-connect() failed (111: Connection refused) while connecting to upstream解决 – 直到世界的尽头 – 博客频道 – CSDN.NET

-》

centos安装php php-fpm 以及 配置nginx – 直到世界的尽头 – 博客频道 – CSDN.NET

fastcgi – nginx: connect() failed (111: Connection refused) while connecting to upstream – Stack Overflow

 html cacat /etc/ph

此处根本没有安装php5

-》但是好像nginx和php,没有什么关系吧?

nginx一直报错, 请帮忙看看日志,怎么解决 – 查看主题 • Ubuntu中文论坛

一次Nginx和php-fpm自启动设置和排错 – 行知小筑 – 51CTO技术博客

nginx下无法打开php,报错[error] 5040#0: *1 connect() failed (111: Connection ref … – BruceeWoo的日志 – LinuxTone | 运维专家网论坛 – 最棒的Linux运维与开源架构技术交流社区! – Powered by Discuz!

connect() failed (111: Connection refused) while connecting to upstream解决 – 运维生存时间

Nginx 111: Connection refused errors. | DigitalOcean

node.js – nginx: connect() failed (111: Connection refused) while connecting to upstream – Server Fault

Nginx 502 Bad Gateway | NodeBB

后来的后来:

确认是:

nginx的环境是被破坏了

-》好像是/etc/nginx/conf.d 中的配置被改动,改出问题了

-》最后是强制删除之前的nginx,并且重新安装:

rm -rf /etc/nginx
yum install nginx
service nginx start

即可:

http://hd.webonn.com

重新安装之后,去看配置文件:

 html cd /etc/nginx/conf.d 
 conf.d ll
total 12K
-rw-r–r– 1 root root 1.3K Jun 17  2015 default.conf
-rw-r–r– 1 root root  466 Jun 17  2015 ssl.conf
-rw-r–r– 1 root root  283 Jun 17  2015 virtual.conf
 conf.d ls default.conf 
default.conf
 conf.d cat default.conf 
#
# The default server
#
server {
    listen       80 default_server;
    server_name  _;
    #charset koi8-r;
    #access_log  logs/host.access.log  main;
    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;
    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }
    error_page  404              /404.html;
    location = /404.html {
        root   /usr/share/nginx/html;
    }
    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}
    # deny access to .htaccess files, if Apache’s document root
    # concurs with nginx’s one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}
 conf.d cat virtual.conf 
#
# A virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#    listen       8000;
#    listen       somename:8080;
#    server_name  somename  alias  another.alias;
#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}
 conf.d cat ssl.conf 
#
# HTTPS server configuration
#
#server {
#    listen       443;
#    server_name  _;
#    ssl                  on;
#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;
#    ssl_session_timeout  5m;
#    ssl_protocols  SSLv2 SSLv3 TLSv1;
#    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
#    ssl_prefer_server_ciphers   on;
#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

转载请注明:在路上 » [已解决]访问nginx网站出错:The page you are looking for is temporarily unavailable. Please try again later

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
49 queries in 0.135 seconds, using 18.79MB memory