下载cockpit
yum -y install cockpit
下载相关环境
yum install qemu-kvm libvirt libvirt-daemon virt-install virt-manager libvirt-dbus
启动libvirtd
systemctl start libvirtd.service
systemctl enable libvirtd.service
设置开机自启动
systemctl enable --now cockpit.socket
查看服务和端口
可以看到服务已经启动,并且9090端口启动
[root@nginxlave251 ~]$ netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 821/nginx: master p
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 773/sshd: /usr/sbin
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 5966/dnsmasq
tcp6 0 0 :::80 :::* LISTEN 821/nginx: master p
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 773/sshd: /usr/sbin
tcp6 0 0 :::9090 :::* LISTEN 1/systemd