幫助中心
這里有最新的使用文檔和教程
如何取消Centos 8中的Activate the web console with: systemctl enable –now cockpit.socket提示
每次進(jìn)入Centos 8系統(tǒng),都會(huì)有如下的提示:
lwk@qwfys:~$ ssh root@172.16.154.168
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Mon Jun 15 10:53:00 2020 from 172.16.154.164
[root@harbin ~]#
提示的意思是說(shuō),通過(guò)命令systemctl enable --now cockpit.socket可以開(kāi)啟一個(gè)基于Web的系統(tǒng)控制臺(tái),后續(xù)管理主機(jī)的時(shí)候,通過(guò)這個(gè)web控制臺(tái),也是可以管理系統(tǒng)的。
那么,我們有沒(méi)有辦法取消這個(gè)提示呢?我們知道通常情況下,Centos系統(tǒng)的文本登錄界面中的提示信息是存放在文件/etc/motd或者目錄/etc/motd.d/中的,那么,我們來(lái)找一下看看吧。
[root@harbin ~]# ll /etc/motd.d/
total 12
drwxr-xr-x. 2 root root 21 Feb 18 15:59 .
drwxr-xr-x. 97 root root 8192 Jun 15 11:00 ..
lrwxrwxrwx. 1 root root 17 Nov 9 2019 cockpit -> /run/cockpit/motd
[root@dph000 ~]# cat /etc/motd.d/cockpit
Activate the web console with: systemctl enable --now cockpit.socket
[root@harbin ~]#
我們可以看到,文本Activate the web console with: systemctl enable --now cockpit.socket信息是存放在軟連接文件/etc/motd.d/cockpit對(duì)應(yīng)的文件中的,既然如此,那么,我們只要?jiǎng)h除這個(gè)軟鏈接文件,然后重新登錄即可取消上述提示。
[root@harbin motd.d]# rm -rf cockpit
[root@harbin motd.d]# exit
logout
Connection to 172.16.154.168 closed.
lwk@qwfys:~$ ssh root@172.16.154.168
Last login: Mon Jun 15 17:14:54 2020 from 172.16.154.164
[root@harbin ~]#