debian下环境配置时apache启动错误

coat 发布于 2013/09/01 12:20
阅读 227
收藏 0

 $ apache2 -k restart

Command 'apache2' is available in '/usr/sbin/apache2'

The command could not be located because '/usr/sbin' is not included in the PATH environment variable

This is most likely caused by the lack of administrative priviledges associated with your user account.

apache2: command not found


~ $ echo $PATH
”/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/sbin” //请看这里,我已经加入正确的环境了,为什么还是会报上面的错误,额已经重启注销过了。



加载中
0
leo108
leo108
sudo一下呢
0
coat
coat

引用来自“leo108”的答案

sudo一下呢

会出现这个

apache2: bad user name ${APACHE_RUN_USER}

0
coat
coat

引用来自“leo108”的答案

sudo一下呢

当然,这个错误我也是有去找过解决方法的,但依旧不行!

export APACHE_RUN_USER=blue export APACHE_RUN_GROUP=blue


返回顶部
顶部