【问题标题】:refused to connect after remove another website in my server在我的服务器中删除另一个网站后拒绝连接
【发布时间】:2016-12-22 09:50:19
【问题描述】:

我的网站是 banadsense.com,我昨天可以访问它。现在我无法使用 chrome 和 firefox 从我的笔记本电脑访问它。

这是来自 chrome 的通知:

bannedadsense.com 拒绝连接。

但是 ping banadsense.com 仍然运行良好。

[dang@centos-512mb-nyc3 ~]$ ping banadsense.com PING banadsense.com (45.55.213.4) 56(84) 字节数据。 64 字节 centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=1 ttl=64 time=0.062 m
s 来自 centos-512mb-nyc3-01 (45.55.213.4) 的 64 字节:icmp_seq=2 ttl=64 时间=0.137 m s 64 字节,来自 centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=3 ttl=64 时间=0.140 m s 64 来自 centos-512mb-nyc3-01 (45.55.213.4) 的字节:icmp_seq=4 ttl=64 时间=0.067 m s 64 字节,来自 centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=5 ttl=64 时间=0.103 m s 64 来自 centos-512mb-nyc3-01 (45.55.213.4) 的字节:icmp_seq=6 ttl=64 time=0.124 ms 来自 centos-512mb-nyc3-01 (45.55.213.4) 的 64 字节: icmp_seq=7 ttl=64 time=0.078 ms 64 bytes from centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=8 ttl=64 time=0.133 ms 64 字节 centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=9 ttl=64 时间=0.139 ms 64 来自 centos-512mb-nyc3-01 (45.55.213.4) 的字节:icmp_seq=10 ttl=64 时间=0.127 毫秒 64 字节,来自 centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=11 ttl=64 time=0.103 ms 64 bytes from centos-512mb-nyc3-01 (45.55.213.4): icmp_seq=12 ttl=64 time=0.191 ms

访问ftp还是不错的。

我不知道是什么问题。

从代理检查:

无法加载请求的资源。 libcurl 返回了 错误:无法连接到 banadsense.com 端口 80:连接 拒绝

我已从服务器停止防火墙。但问题依然存在。


我现在看到了问题: 我无法重启apache,问题就在这里。

sudo apachectl 重启

请帮帮我,非常感谢。

【问题讨论】:

    标签: centos7 digital-ocean


    【解决方案1】:

    我现在看到了问题:我无法重新启动 apache,问题就在这里。

    sudo apachectl 重启 apachectl 状态

    这是命令行结果的一部分:

    Dec 22 05:31:55 centos-512mb-nyc3-01 httpd[728]: (2)No such file or directory: AH02291: Cannot access directory '/var/www/xosopowerball.net/' 获取错误日志...等.conf:1 12 月 22 日 05:31:55 centos-512mb-nyc3-01 httpd[728]: (2)No such file or directory: AH02291: Cannot access directory '/var/www/xosomegamillions.com/' for error l... om.conf:1

    我只创建了两个名为 xosopowerball.net 和 xosomegamillions.com 的新文件夹,然后再次重新启动 apache,所有问题都已解决。


    新解决方案: 删除 /etc/httpd/sites-available/ 和 /etc/httpd/sites-enabled/ 中的文件并重新启动。然后您可以删除 /var/www 中的 2 个文件夹。我在设置虚拟主机时创建了它们,查看这里Create New Virtual Host Files

    感谢您阅读我的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多