禁用X-Service 来源:网络+亲测 1、 sudo service lightdm stop #关闭图形界面; 2、sudo service lightdm start #开启图形界面; 关闭图形后可在CTRL+ALT+F1进入tty1,再输入开启命令,开启后CTRL+ALT+F7返回。