修改redhat或者centos桌面模式为文本模式

问题: 生产环境服务器安装的是redhat的桌面版 ,占用过多不必要的资源。

解决方法

1.首先删除已经存在的符号链接:

rm /etc/systemd/system/default.target 

2.默认级别转换为3(文本模式):

ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target 

或者默认级别转换为5(图形模式):

 ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target 

3.重启:

 reboot 

https://www.cnblogs.com/datasyman/p/7298210.html

猜你喜欢

转载自blog.csdn.net/xiunai78/article/details/88556145