首页 > 开发 > Apache > 正文

apache2: bad user name ${APACHE_RUN_USER} 解决

2019-12-22 22:46:29
字体:
来源:转载
供稿:网友
apache2: bad user name ${APACHE_RUN_USER} 解决

开工后,发现有个虚拟机的apache没起来,调用apache2 -k start 后,提示如下内容:

apache2: bad user name ${APACHE_RUN_USER}

apache 启动时,是由读取 /etc/apache2/apache2.conf 读取了运行 User

而运行的user环境变量定义在/etc/apache2/envvars

而不是使用默认的登录账户启动,因此apache提供了apache2ctl 工具来使用,调用

apache2ctl -k start

即可


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表