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

Posted on 2010-03-08 12:38  名号M  阅读(4108)  评论(0)    收藏  举报

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

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

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

root用户在目录/root下

maminghao用户在目录/home/maminghao下

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3