linux查看apache配置文件路径,linux 命令行下查看apache配置文件httpd.conf位置
如何用linux命令查看apache配置文件httpd.conf位置,說明如下
輸入命令
httpd -V
輸出結果
[root@MyServer ~]# httpd -V
Server version: Apache/2.2.15 (Unix)
Server built: Dec 15 2015 15:47:31
Server's Module Magic Number: 20051115:25
Server loaded: APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
綜合看HTTPD_ROOT和SERVER_CONFIG_FILE ?就可以確定httpd.conf的路徑
總結
以上是生活随笔為你收集整理的linux查看apache配置文件路径,linux 命令行下查看apache配置文件httpd.conf位置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux日志自动按天保存,linux实
- 下一篇: qt linux webservice,