httpd -V得到类似如下结果: -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf" 然后,两个拼起来就是你要找的路径 ...
第一步:找到apache启动命令: root WAPBJ ps ef grep httpd root : : : usr sbin httpd k start myuser Jan : : home apache bin httpd f home apache conf httpd.conf k start 如果看到 httpd命令使用了 f选项,则可以直接得到配置文件目录。 如果httpd命令没 ...
2016-11-16 15:42 0 1809 推荐指数:
httpd -V得到类似如下结果: -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf" 然后,两个拼起来就是你要找的路径 ...
ServerRoot “/usr/local“ ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下 ...
# This is the main Apache HTTP server configuration file. It contains the 这是Apache HTTP Server的主配置文件。它包括了 # configuration directives that give ...
ServerRoot “/usr/local“ ServerRoot用于指定守护进程httpd的运行目录,httpd在启动之后将自动将进程的当前目录改变为这个目录,因此如果设置文件中指定的文件或目录是相对路径,那么真实路径就位于这个ServerR oot定义的路径之下 ...
"/usr/local/apache-2.2.6" 注意,此指令中的路径最后不要加 / 。 ...
转自:http://jafy00.blog.51cto.com/2594646/501373 常用配置指令说明 1. ServerRoot:服务器的基础目录,一般来说它将包含conf/和logs/子目录,其它配置文件的相对路径即基于此目录。默认为安装目录,不需更改。 语法 ...
(1) 基本配置: ServerRoot "/mnt/software/apache2" #你的apache软件安装的位置。其它指定的目录如果没有指定绝对路径,则目录是相对于该目录。 PidFile logs/httpd.pid #第一个httpd进程(所有其他进程的父进程)的进程号文件位置 ...
/apache-2.2.6" 注意,此指令中的路径最后不要加 / 。 2. Listen:指定服务器监听的I ...