apache [warn] module XXXX_module is already loaded, skipping

今天在重启Apache的时候碰到这个Warn,在这里记录一下:

首先发现如下Warn:

 # service apache2 restart
[Thu Apr 25 09:39:06 2019] [warn] module headers_module is already loaded, skipping
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)          done
Starting httpd2 (prefork) [Thu Apr 25 09:39:07 2019] [warn] module headers_module is already loaded, skipping
                                                                      done

后面查到httpd.conf文件中有LoadModule headers_module:

#For IE Compatibility
LoadModule headers_module modules/mod_headers.so
Header set X-UA-Compatible "IE=EmulateIE8"

因为在Restart Apache的时候会Load该httpd.conf,所以如果headers_module已经Loading,那么再Loading则就会提示该Warn,但是并不影响Apache的正常使用,只是提示User注意该module已经Load。

你可能感兴趣的:(Apache)