bash: service: command not found 错误的解决方法
来源:互联网 发布:js重置表单 编辑:程序博客网 时间:2024/06/02 19:28
bash: service: command not found
于是我到网上去一搜了一下, 发现提问的人蛮多的,但真正回答的却很少,或就是胡编乱造的,回答的多说是PATH有问题,但有什么问题呢?他们也没说清楚。
我觉得原因是这样的,service命令是要用ROOT用户来执行的,而出错的用户是用su root切换到ROOT用户下,这个命令没有也不会把环境带过去!用如下命令就不会出错了:
su - root
注意:su 后面是一个空格,横线后面也是一个空格,千万不能省略.
很简单,但是很实用!呵呵!
- bash: service: command not found 错误的解决方法
- bash: service: command not found 错误的解决方法
- bash: service: command not found 错误的解决方法
- bash: service: command not found 错误的解决方法
- bash: service: command not found 错误的解决方法
- bash: service: command not found(service命令未找到的) 错误的解决方法
- -bash: pecl: command not found的解决方法
- -bash: pecl: command not found的解决方法
- bash: mail: command not found的解决方法
- bash scp command not found的解决方法
- bash: service: command not found
- bash: service: command not found
- bash: service: command not found
- bash: service: command not found
- bash: service: command not found
- bash: service: command not found
- bash command not found解决方法
- bash:command not found解决方法
- 《 高质量C++编程指南 》学习重点五
- 5日精通css第三天
- CPP virtual function
- 《 高质量C++编程指南 》学习重点六
- Linux内核设计与实现
- bash: service: command not found 错误的解决方法
- oracle:pl/sql developer与oracle本地连接问题(非远程连接)
- KFS安装问题
- dell vostro 3400 ubuntu10.10系统及应用安装
- 有关于虚函数
- Ajax学习笔记
- 《 高质量C++编程指南 》学习重点七
- JSP:PLUGIN ClassNotFound错误
- SQL字符串处理函数大全