apache2 启动停止操作

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

标签: none

评论已关闭