LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 859|回复: 1

为什么我的fc5没有了service命令?

[复制链接]
发表于 2006-4-18 20:15:50 | 显示全部楼层 |阅读模式
[root@localhost mnt]# service samba restart
bash: service: command not found
[root@localhost mnt]#
发表于 2006-4-18 23:46:30 | 显示全部楼层
如果用su命令转换到root运行命令提示找不到,
说明用户环境配置中缺少相应命令路径,
可以修改~/.bash_profile
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
export PATH
然后source ~/.bash_profile;
或者使用完整路径,
/sbin/service。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表