现在的位置: 首页 > 综合 > 正文

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

2012年04月22日 ⁄ 综合 ⁄ 共 178字 ⁄ 字号 评论关闭

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

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

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

root用户在目录/root下

maminghao用户在目录/home/maminghao下

抱歉!评论已关闭.