注:
实测在CentOS Stream 9、Fedora 40上可用
此处在加入AD域的CentOS Stream 9上安装使用
1. 安装cockpit
yum install cockpit
2. 开启服务,并设置自启动
systemctl enable --now cockpit
3. 设置防火墙
firewall-cmd --permanent --zone=public --add-service=cockpit
4. 重载防火墙
firewall-cmd --reload
5. 查看端口号
netstat -an | grep 9090
图1: 查看端口号
6. 加入AD域
realm join 请输入AD域的名称 -U 请输入使用的账户
7. 将域账户提权
usermod -G wheel 请输入域账户
8. 浏览器输入https://CentOS Stream9 的IP地址:9090
图1: 登录页面
图2: 首页
9. 关闭和禁用cockpit
systemctl stop cockpit systemctl disable cockpit
10. 删除cockpit
yum remove cockpit