查看apache2的命令 httpd -V
其中HTTPD_ROOT和SERVER_CONFIG_FILE 就可以确定httpd.conf(Apache配置文件)的路径了
apache启动、停止、重启命令
1. 启动apache
service httpd start
2. 停止服务apache
service httpd stop
3. 重新启动apache
service httpd restart
其中HTTPD_ROOT和SERVER_CONFIG_FILE 就可以确定httpd.conf(Apache配置文件)的路径了
1. 启动apache
service httpd start
2. 停止服务apache
service httpd stop
3. 重新启动apache
service httpd restart