如何查看apache配置文件路径

我是用https://lamp.sh/安装的,apache配置文件位置在:/usr/local/apache/conf/httpd.conf
如果是直接安装的apache,配置文件应该在:/etc/httpd/conf/httpd.conf
使用httpd -V 命令即可查看

#httpd -V
Server version: Apache/2.4.37 (Unix)
Server built: Oct 24 2018 21:29:57
Server's Module Magic Number: 20120211:83
Server loaded: APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-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=256
-D HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

posted @ 2018-10-25 10:19 v5captain 阅读(...) 评论(...) 编辑 收藏
Google Analysis | Gmail | Google | 百度一下 | Notepad | 多看阅读
您是第 网络流量统计 个访客!