由于新成员3B的加入,想着是不是使用个面板玩玩,然后发现有点问题想卸载。
cockpit是什么? 只知道是个面板就好了,支持多服务器,基础功能还可以。
常规卸载
sudo apt remove cockpit
但是发现卸载了之后还可以正常访问页面,正常登录9090端口。
关闭服务
systemctl stop cockpit
systemctl disable cockpit
在这里stop
时会发现一个提示信息
Warning: Stopping cockpit.service, but it can still be activated by:
cockpit.socket
意思是虽然停掉了cockpit
服务,但是还可以通过cockpit.socket
激活,那cockpit.socket
是什么呢?
其实通过
systemctl stop cockpit
只是相当用户退出了登录,网页还是能够打开,用户可以通过网页来再次登录。有没有办法彻底停止呢,当然有
systemctl stop cockpit.socket
就是上述提示中的cockpit.socket,这样就彻底关闭了,网页也打不开了。
确定完全卸载了?
由于这个时候发现还是可以再启动的,所以感觉还是没有完全卸载,然后就google一下,发现github的issue中有提到部分信息uninstall/remove cockpit #12507
sudo apt remove cockpit*
# would work fine by removing any cockpit related packages
是的,我尝试了一下还算可以,删除掉了部分之前未删除掉的内容,但是还是存在一些残留文件,删除过程中会有提示,自己手动删除即可。
这里按照issue中提到的内容做个参考:
/etc/cockpit
/etc/cockpit/ws-certs.d
/etc/cockpit/ws-certs.d/0-self-signed-ca.pem
/etc/cockpit/ws-certs.d/0-self-signed.cert
/usr/share/cockpit # empty dir
/usr/share/cockpit/static
/usr/share/cockpit/static/fonts # empty dir
/usr/share/doc/cockpit # empty dir
评论区