Loading

手动安装cockpit(linux web consol)

Fedora安装

安装cockpit:

sudo dnf install cockpit

开启cockpit:

sudo systemctl enable --now cockpit.socket

加入防火墙策略

sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent

 

CentOS 7.x:

安装cockpit:

sudo yum install cockpit

开启cockpit:

sudo systemctl enable --now cockpit.socket

加入防火墙策略:

sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload

debian 9:

  1. For Debian 9 you have to enable the backports repository:
    echo 'deb http://deb.debian.org/debian stretch-backports main' > \
     /etc/apt/sources.list.d/backports.list
    apt-get update
    
  2. Install the package:
    sudo apt-get install cockpit
posted @ 2020-04-24 18:51  上官飞鸿  阅读(860)  评论(0编辑  收藏  举报