Centos Cockpit & semanage
一、Centos8 Cockpit
1.C登入console 時會看到
「Activate the web console with: systemctl enable –now cockpit.socket」


Cockpit 是一個基於 Web 的伺服器管理工具,可用於 CentOS 和 RHEL 系統。最近釋出的 CentOS 8 和 RHEL 8,其中 cockpit 是預設的伺服器管理工具。
Cockpit is a Web based server management tool available for CentOS and RHEL systems
recently CentOS 8 and RHEL 8 are released where cockpit is kept as default server management tool
2.cockpit
https://www.linuxtechi.com/install-use-cockpit-tool-centos8-rhel8/
systemctl start cockpit.socket
systemctl enable --now cockpit.socket
firewall-cmd --permanent --add-service=cockpit
firewall-cmd --reload
firewall-cmd --list-all
https://localhost:9090


二、semanage
https://man7.org/linux/man-pages/man8/semanage-export.8.html
1.semanage-export
semanage export -f semanage.mods

2.semanage import -f semanage.mods
https://man7.org/linux/man-pages/man8/semanage-import.8.html


三、Centos7 Cockpit
1.安裝 cockpit
yum install -y cockpit
systemctl enable --now cockpit.socket
firewall-cmd --permanent --add-service=cockpit
firewall-cmd --reload
2.安裝套件
yum -y install cockpit-packagekit cockpit-pcp cockpit-storaged cockpit-dashboard
setroubleshoot-server
https://localhost:9090
