CentOS 7關閉圖形案頭開啟文本介面

來源:互聯網
上載者:User

標籤:軟串連

按照 /etc/inittab 內部說明做如下改動

#mv /etc/systemd/system/default.target /etc/systemd/system/default.target.bak         (改名備份)
# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target      (重新軟串連文本介面為啟動預設值介面)
#systemctl reboot                                                                                                               (重啟) 

恢複圖形介面
#rm -rf  /etc/systemd/system/default.target                                                                      (移除當前配置連結)
#mv  /etc/systemd/system/default.target.bak /etc/systemd/system/default.target       (恢複備份配置連結)
#systemctl reboot                                                                                                               (重啟)


1,命令模式
systemctl set-default multi-user.target


2,圖形模式
systemctl set-default graphical.target




在grub啟動菜單中,編輯一下命令列,在kernel的後面加一個參數看看:kernel /vmlinuz-xxx ro root=UUID=229da276-96cf-4c80-81a3-851954c15831xx  LANG=zh_CN.UTF-8


ps -ef | grep phdns

kill -s 9 pid

cat /var/log/phddns.log



dmesg | more


ps -aux


./phddns -c /etc/phlinux.conf -d


mount -t iso9660 /dev/cdrom /mnt


tar zxf ddd.tar.gz

tar -zxvf dddd.tar.gz



tcpdump -i emo -nv -t icmp


echo "blacklist i2c_piix4" >> /etc/modprobe.d/blacklist.conf


mkdir -p 1/2/3/4


echo ‘export LANG=en_US.UFT-8‘ >> ~/.bashrc


systemctl set-default multi-user.target


cat /var/log/boot.log

本文出自 “vincent” 部落格,謝絕轉載!

CentOS 7關閉圖形案頭開啟文本介面

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.