linux无法使用service命令的解决方法

在linux上运行service https start,响应service command not found

后来google了一下,发现需要将/sbin目录加入环境变量PATH中。

可以在使用的用户目录的.bashrc文件中加入export PATH=$PATH:/sbin/

root用户在目录/root下

maminghao用户在目录/home/maminghao下

posted @ 2011-11-29 11:58  google4y  阅读(1087)  评论(0编辑  收藏  举报
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂