Centos7 安装 Cockpit
1
sudo yum -y install epel-release sudo yum -y update sudo shutdown -r now
2yum -y install cockpit
systemctl start cockpit
systemctl enable cockpit.socket
3
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
firewall-cmd --reload
给cockpit开启SSL
export DP_Id="ID数字"
yum install socat -y
curl https://get.acme.sh | sh
#重启
export DP_Key="Token字符串"
acme.sh --issue -d szy.best -d *.szy.best --dns dnspod_com
按以上输出去dnspod添加txt,然后执行下面
acme.sh --issue -d szy.best -d *.szy.best --dns dnspod_com --renew
成功输出后 会有如下文件:
remotectl certificate #查看cockpit加载证书的位置
cat fullchain.cer backup/key.bak > /etc/cockpit/ws-certs.d/1.cert #生成所需文件
systemctl restart cockpit