在CentOS5.4新系统yum update后无service、ntsysv、chkconfig命令,提示command not found。
解决方法: 先在命令行中输入 export PATH=$PATH:/usr/sbin:/sbin 这样你可以临时恢复环境变量设置。
vi /etc/profile 更改