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 

即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM