開工后,發現有個虛擬機的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
即可
新聞熱點
疑難解答