欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

如何查看apache配置文件路径在哪里 有大用 有大大用

如何查看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"


分类: Linux


来自  https://www.cnblogs.com/v5captain/p/9848146.html

普通分类: