如何取消Centos 8中的Activate the web console with: systemctl enable --now cockpit.socket提示

每次進入Centos 8系統,都會有如下的提示:

lwk@qwfys:~$ ssh [email protected] 

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 ~]# 

提示的意思是說,通過命令systemctl enable --now cockpit.socket可以開啓一個基於Web的系統控制檯,後續管理主機的時候,通過這個web控制檯,也是可以管理系統的。

那麼,我們有沒有辦法取消這個提示呢?我們知道通常情況下,Centos系統的文本登錄界面中的提示信息是存放在文件/etc/motd或者目錄/etc/motd.d/中的,那麼,我們來找一下看看吧。

[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對應的文件中的,既然如此,那麼,我們只要刪除這個軟鏈接文件,然後重新登錄即可取消上述提示。

[root@harbin motd.d]# rm -rf cockpit 
[root@harbin motd.d]# exit
logout
Connection to 172.16.154.168  closed.
lwk@qwfys:~$ ssh [email protected] 

Last login: Mon Jun 15 17:14:54 2020 from 172.16.154.164
[root@harbin ~]#
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章