最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】LNMP安装后DNS域名生效后访问出错:无法访问此网站,拒绝了我们的连接请求

LNMP crifan 10852浏览 0评论

折腾:

【记录】从fzhost搬家crifan.com到Linode的Atlanta的VPS

期间,DNS域名已经生效了,但是访问:

www.crifan.com

却还是提示出错:

Safari:Safari打不开页面

Chrome:

无法访问此网站

www.crifan.com 拒绝了我们的连接请求。

请试试以下办法:

  • 检查网络连接
  • 检查代理服务器和防火墙

ERR_CONNECTION_REFUSED

请检查您的互联网连接是否正常

请检查所有网线是否都已连好,然后重新启动您可能正在使用的任何路由器、调制解调器或其他网络设备。

在防火墙或防病毒设置部分设为允许 Chrome 访问网络。

如果它已在可访问网络的程序列表中,请尝试将它从该列表中移除,然后重新添加到其中。

如果您使用代理服务器…

请检查您的代理服务器设置或与网络管理员联系,以确保代理服务器正常运行。如果您认为自己不需要使用代理服务器,请执行以下操作: 依次转到“应用”>“系统偏好设置”>“网络”>“高级”>“代理”,然后取消选中所有已选的代理。

lnmp 无法访问此网站

无法访问此网站,连接己重置 – LNMP一键安装包 – VPS侦探论坛 – 美国VPS|VPS测试、点评|VPS主机推荐|VPS主机架设优化|美国服务器|LNMP一键安装包|Linux|VPS优惠信息

新建网站,在Linux服务器上部署nginx之后不能访问,故障排查过程分享 – H2O’s运维&开发路 – 51CTO技术博客

[root@crifan www.crifan.com]# lnmp status
+——————————————-+
|    Manager for LNMP, Written by Licess    |
+——————————————-+
|              https://lnmp.org             |
+——————————————-+
nginx (pid 8011 8010 7261) is running…
php-fpm is runing!
SUCCESS! MySQL running (7805)
[root@crifan www.crifan.com]# netstat -lanp|grep 80
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      7805/mysqld         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7261/nginx: master  
tcp        0      0 45.79.205.194:80        112.10.0.112:28131      TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        1.129.97.230:16122      ESTABLISHED 8010/nginx: worker  
tcp        0      0 45.79.205.194:80        113.251.218.136:53658   FIN_WAIT2   –                   
tcp        0      0 45.79.205.194:80        112.10.0.112:28133      TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        14.108.132.196:52705    TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        210.94.178.176:60320    TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        223.71.166.222:34409    FIN_WAIT2   –                   
tcp        0      0 45.79.205.194:80        139.214.118.9:33849     TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        113.251.218.136:53659   FIN_WAIT2   –                   
tcp        0      0 45.79.205.194:80        140.206.161.160:55811   ESTABLISHED 8010/nginx: worker  
tcp        0      0 45.79.205.194:80        106.39.190.239:53846    TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        106.39.190.239:53848    TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        1.129.97.230:27390      ESTABLISHED 8011/nginx: worker  
tcp        0      0 45.79.205.194:80        61.187.93.111:52889     TIME_WAIT   –                   
tcp        0      0 45.79.205.194:80        103.218.216.100:19866   TIME_WAIT   –                   
unix  2      [ ACC ]     STREAM     LISTENING     241244   7805/mysqld          /tmp/mysql.sock
unix  3      [ ]         STREAM     CONNECTED     18068    3220/dbus-daemon     /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     243080   7981/php-fpm: maste  

关于lnmp的问答和话题-云栖社区-手机站-阿里云

ecs linux服务器镜像部署LNMP环境之后不能访问网站-云栖社区

centos 7 安装了lnmp 环境,无法访问-云栖社区

php – centos中的nginx无法访问?我是不是漏了什么? – SegmentFault

去试试curl 127结果forbidden

<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

看起来像是防火墙?

但是之前的lnmp的主页是可以访问的啊。

lnmp centos ERR_CONNECTION_REFUSED

solved – Unable to access websites/vps – CentOS

Help me to fix "ERR_CONNECTION_REFUSED" | DigitalOcean

ERR_CONNECTION_REFUSED nginx PHP new droplet | DigitalOcean

Server does not respond and ERR_CONNECTION_REFUSED (in chrome) | XenForo community

The Perfect Server – CentOS 7 x86_64 (nginx, Dovecot, ISPConfig 3)

Problem ERR_CONNECTION_REFUSED | Plesk Forum

linux – nginx not listening to port 80 – Stack Overflow

先不管,先去重启lnmp试试

[root@crifan www.crifan.com]# lnmp restart
+——————————————-+
|    Manager for LNMP, Written by Licess    |
+——————————————-+
|              https://lnmp.org             |
+——————————————-+
Stoping LNMP…
Stoping nginx…  done
Shutting down MySQL.. SUCCESS!
Gracefully shutting down php-fpm . done
Starting LNMP…
Starting nginx…  done
Starting MySQL.. SUCCESS!
Starting php-fpm  done
[root@crifan www.crifan.com]# lnmp status
+——————————————-+
|    Manager for LNMP, Written by Licess    |
+——————————————-+
|              https://lnmp.org             |
+——————————————-+
nginx (pid 15806 15805 15804) is running…
php-fpm is runing!
SUCCESS! MySQL running (16310)
[root@crifan www.crifan.com]# lnmp vhost list
+——————————————-+
|    Manager for LNMP, Written by Licess    |
+——————————————-+
|              https://lnmp.org             |
+——————————————-+
Nginx Virtualhost list:

此处还是没有完全搞懂,为何之前的lnmp主也可以访问。

算了,还是把整个Wordpress移动到

/home/wwwroot/crifan

下面吧

看看效果

问题依旧,还是之前的403:

lnmp centos  403

centos – Nginx 403 forbidden for all files – Stack Overflow

[root@crifan crifan]# getenforce
Disabled

403 Forbidden nginx/1.6.3 (centos 7) | DigitalOcean

403 Forbidden nginx (13) permission denied | DigitalOcean

nginx 403 forbidden 二种原因«海底苍鹰(tank)博客

说是:

下面没有index.php,index.html的时候,直接访问域名,找不到文件,会报403 forbidden

所以就再去把wordpress的内容再移动到

/home/wwwroot/www.crifan.com

中:

[root@crifan crifan]# mv * /home/wwwroot/www.crifan.com/

然后就可以了,只不过是另外的:

然后就是解决这个

建立数据库连接时出错

的问题了。

详见:

【记录】从fzhost搬家crifan.com到Linode的Atlanta的VPS

【总结】

此处,直接打开了:

www.crifan.com

(由于之前支持https的,所以)

自动跳转到了:

https://www.crifan.com

而当前搬家后的系统中暂时不支持https,所以报错

改为访问

https://www.crifan.com

就可以正常访问了。

转载请注明:在路上 » 【已解决】LNMP安装后DNS域名生效后访问出错:无法访问此网站,拒绝了我们的连接请求

发表我的评论
取消评论

表情

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.166 seconds, using 22.13MB memory