日期:2014-05-16  浏览次数:20642 次

Linux启动startx出错

问题:root进去后输入startx进入图形界面提示:-bash:startx::command not found

解决方法:

?

意思就是你没把命令加入环境变量,所以命令用不起
你可以使用命令的绝对路径 :
/usr/bin/startx

不过为了你下次登陆,你还是应该把它加到环境变量中
命令如下:
vi /root/.bash_profile
然后再打开的文件中加入
PATH=$PATH:/usr/bin
export

保存退出

现在可以激活它输入
source /root/.bash_profile
不出意外就可以使用startx了

?

?