您的位置:首页 > Web前端

Fedora 20_x86_64将默认图形模式切换到默认文本模式

2014-03-31 16:16 471 查看
[root@localhost ~]# cat /etc/inittab

# inittab is no longer used when using systemd.

#

# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#

# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target

#

# systemd uses 'targets' instead of runlevels. By default, there are two main targets:

#

# multi-user.target: analogous to runlevel 3

# graphical.target: analogous to runlevel 5

#

# To set a default target, run:

#

# ln -sf /lib/systemd/system/<target name>.target /etc/systemd/system/default.target

#

[root@localhost ~]# cd /etc/systemd/system

[root@localhost system]# ln -s /etc/systemd/system/default.target

0 lrwxrwxrwx. 1 root root   37 Mar 31 16:02 default.target -> /lib/systemd/system/graphical.target

[root@localhost system]#

[root@localhost system]# ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

ln: failed to create symbolic link ?.etc/systemd/system/default.target?. File exists

[root@localhost system]# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

[root@localhost system]# ls -l /lib/systemd/system/default.target

lrwxrwxrwx. 1 root root 16 Mar 31 09:45 /lib/systemd/system/default.target -> graphical.target

[root@localhost system]# ln -sf /lib/systemd/system/multi-user.target /lib/systemd/system/default.target

[root@localhost system]# reboot
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: