cockpit-325以及新版本安装和cockpit-files安装

查看版本cockpit可安装版本,发现最新的只有310版本
sudo yum list cockpit --showduplicates

Last metadata expiration check: 0:30:11 ago on Thu 07 Nov 2024 04:14:14 PM CST.
Installed Packages
cockpit.x86_64 310.4-1.al8 @alinux3-updates
Available Packages
cockpit.x86_64 195.12-1.45d.el7 45drives_stable
cockpit.x86_64 195.12-3.45d.el7 45drives_stable
cockpit.x86_64 195.12-4.45d.el7 45drives_stable
cockpit.x86_64 224.2-1.1.al8 alinux3-os
cockpit.x86_64 238.2-1.1.al8 alinux3-updates
cockpit.x86_64 286.1-1.al8 alinux3-updates
cockpit.x86_64 286.1-1.0.1.al8 alinux3-updates
cockpit.x86_64 300.1-1.0.1.al8 alinux3-updates
cockpit.x86_64 310.4-1.al8 alinux3-updates

在别的地方看有所以很迷

apt-cache policy cockpit
cockpit:
Installed: (none)
Candidate: 323-1
Version table:
323-1 500
500 http://http.kali.org/kali kali-rolling/main amd64 Packages

手动下载安装
解压文件
tar -xf cockpit-325.tar.xz
cd cockpit-325
安装依赖
sudo yum install -y gcc make systemd-devel json-glib-devel gnutls-devel polkit-devel libssh-devel pam-devel pcp-libs-devel xmlto gettext itstool libappstream-glib-devel
编译安装
./configure
make
运行完会报make[1]: Leaving directory '/home/admin/cockpit-325'原因不明(求解)
继续
sudo make install
启动cockpit服务
sudo systemctl start cockpit
设置服务cockpit为自动启动
sudo systemctl enable cockpit
或直接
sudo systemctl enable --now cockpit.socket
设置防火墙
sudo firewall-cmd --add-service=cockpit --permanent
sudo firewall-cmd --reload
浏览器访问
https://<服务器IP>:9090

官网中有两个文件管理插件cockpit-navigator和cockpit-files
也是因为想试试cockpit-files才想装cockpit-318以上版本
cockpit-navigator是第三方的用的人很轻松地多能找到安装使用教程,便写一下红帽官方的插件cockpit-files
cockpit-files文件管理器安装
git clone https://github.com/cockpit-project/cockpit-files.git
cd cockpit-files
make
sudo make install
开发着模式下安装(可选)
sudo make devel-install
重启服务
sudo systemctl restart cockpit
结论能用,但装在2核2G的阿里云服务器上感觉贼卡没有yum和dnf能安装的最新版本310流畅
linux版本信息

Linux version 5.10.134-17.2.al8.x86_64 (gcc (GCC) 10.2.1 20200825 (Alibaba 10.2.1-3.8 2.32), GNU ld version 2.35-12.3.al8)

posted @ 2024-11-07 16:47  秋去冬  阅读(55)  评论(0编辑  收藏  举报