在linux系统下apache的默认安装路径怎么看
发布时间:2020-11-06 10:38:18
来源:亿速云
阅读:127
作者:小新
这篇文章将为大家详细讲解有关在linux系统下apache的默认安装路径怎么看,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
如果采用RPM包安装,安装路径应在 /etc/httpd目录下。
apache配置文件:/etc/httpd/conf/httpd.conf 可以修改相关的访问路径及配置
Apache模块路径:/usr/sbin/apachectl 启动模块
web目录:/var/www/html 项目的存储路径
如果采用源代码安装,一般默认安装在/usr/local/apache2目录下。
启动apache报错信息,很大程度需要检查是不是端口被占用了,因为默认apache启动的是80端口。像nginx默认页是开启80端口。
报错信息如下:[root@localhost ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@localhost ~]# service httpd stat