1. 关闭图形用户界面

    1
    2
    sudo systemctl set-default multi-user.target
    sudo reboot
  1. 开启图形用户界面

    1
    2
    sudo systemctl set-default graphical.target
    sudo reboot