add following path in CentOS export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin 转载于:https://www.cnblogs.com/greencolor/archive/2011/11/13/2247061.html