说明案例:ubuntu16.04
关闭图形界面命令:
systemctl disable lightdm.service
开启图形界面命令:
ln -s /lib/systemd/system/lightdm.service /etc/systemd/system/display-manager.service
最后重启生效 :
reboot