linux下怎样打开apache配置文件

如题所述

find / -name httpd
find / -name apachectl
find / -name httpd.conf
可以通过阅读httpd.conf找到ServerRoot关键字 ,ServerRoot之后的引号里的内容就是系统安装目录了。比如REDHAT LINUX过RPM方式安装的APACHE的默认目录为:/etc/httpd,则你就可以其httpd.conf里有这条指令:ServerRoot "/etc/httpd"。
温馨提示:内容为网友见解,仅供参考
第1个回答  2016-06-27
vim /etc/httpd/conf/httpd.conf
相似回答