What is Cockpit?
Cockpit 是一個圖形介面的主機效能監控、管理工具
Official web: https://cockpit-project.org Cockpit makes GNU/Linux discoverable. See your server in a web browser and perform system tasks with a mouse. It’s easy to start containers, administer storage, configure networks, and inspect logs.
安裝程式
# CentOS
$ sudo yum -y install cockpit \ # 主要軟體
cockpit-docker \ # 管理 docker
cockpit-dashboard \ # 管理多臺主機
cockpit-packagekit # 管理軟體
# Ubuntu
$ sudo apt-get install cockpit \ # 主要軟體
cockpit-docker \ # 管理 docker
cockpit-dashboard \ # 管理多臺主機
cockpit-packagekit # 管理軟體
啟動服務
$ sudo systemctl enable cockpit.socket
$ sudo systemctl start cockpit.socket
$ systemctl status cockpit # 檢查服務狀態
設定防火牆
# CentOS
$ sudo firewall-cmd --permanent --zone=public --add-service=cockpit
$ sudo firewall-cmd --reload
操作介面
打開預覽器輸入
your_ip_address:9090
,例如: 192.168.11.14:9090登入畫面
cockpit 網頁登入畫面
網頁呈現
cockpit 使用介面