安装 Cockpit 后无法访问网站

安装 Cockpit 后无法访问网站

我不知道我的系统发生了什么。我安装cockpit后发现我无法再访问托管在我服务器上的网站。

即使我删除cockpit包含的NetworkManager,我仍然无法访问。

以下是一些信息。有人能给我一些建议吗?非常感谢。

我禁用firewalld并替换为iptables

~ sudo systemctl status firewalld -l
● firewalld.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)
~ sudo systemctl status iptables -l
● iptables.service - IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
   Active: active (exited) since Mon 2021-02-22 00:31:58 +07; 9s ago
  Process: 9785 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=0/SUCCESS)
  Process: 11931 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=0/SUCCESS)
 Main PID: 11931 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/iptables.service

Feb 22 00:31:58 ssdnodes-68686 systemd[1]: Starting IPv4 firewall with iptables...
Feb 22 00:31:58 ssdnodes-68686 iptables.init[11931]: iptables: Applying firewall rules: [  OK  ]
Feb 22 00:31:58 ssdnodes-68686 systemd[1]: Started IPv4 firewall with iptables.
~ sudo systemctl status ip6tables -l
● ip6tables.service - IPv6 firewall with ip6tables
   Loaded: loaded (/usr/lib/systemd/system/ip6tables.service; enabled; vendor preset: disabled)
   Active: active (exited) since Mon 2021-02-22 00:32:04 +07; 15s ago
  Process: 9854 ExecStop=/usr/libexec/iptables/ip6tables.init stop (code=exited, status=0/SUCCESS)
  Process: 11962 ExecStart=/usr/libexec/iptables/ip6tables.init start (code=exited, status=0/SUCCESS)
 Main PID: 11962 (code=exited, status=0/SUCCESS)

Feb 22 00:32:04 ssdnodes-68686 systemd[1]: Starting IPv6 firewall with ip6tables...
Feb 22 00:32:04 ssdnodes-68686 systemd[1]: Started IPv6 firewall with ip6tables.
Feb 22 00:32:04 ssdnodes-68686 ip6tables.init[11962]: ip6tables: Applying firewall rules: [  OK  ]

当使用命令列出单位时sudo systemctl list-units,有一些iptables服务信息如下。

  ip6tables.service                                         loaded active exited
  iptables-openvpn.service                                  loaded active exited
  iptables.service                                          loaded active exited
  mariadb.service                                           loaded active running
  network.service                                           loaded active exited
  nginx.service                                             loaded active running
  [email protected]                             loaded active running[email protected]                                    loaded failed failed
  php-fpm.service                                           loaded active running

相关内容