开工后,发现有个虚拟机的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 

即可

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-01-11
  • 2021-12-17
  • 2021-07-28
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2022-03-08
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案