网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

在linux系统下apache的默认安装路径怎么看-创新互联

这篇文章将为大家详细讲解有关在linux系统下apache的默认安装路径怎么看,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

创新互联建站科技有限公司专业互联网基础服务商,为您提供服务器主机托管高防主机,成都IDC机房托管,成都主机托管等互联网服务。

如果采用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 status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 三 2018-12-05 14:42:42 CST; 11s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 3640 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 3639 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 3639 (code=exited, status=1/FAILURE)

12月 05 14:42:42 localhost.localdomain httpd[3639]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
12月 05 14:42:42 localhost.localdomain httpd[3639]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
12月 05 14:42:42 localhost.localdomain httpd[3639]: no listening sockets available, shutting down
12月 05 14:42:42 localhost.localdomain httpd[3639]: AH00015: Unable to open logs
12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
12月 05 14:42:42 localhost.localdomain kill[3640]: kill: cannot find process ""
12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
12月 05 14:42:42 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
12月 05 14:42:42 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service failed.
[root@localhost ~]#

可以看到Address already in use错误,修改apache的端口。

编辑/etc/httpd/conf/httpd.conf

在linux系统下apache的默认安装路径怎么看

再次重启即可。

关于在linux系统下apache的默认安装路径怎么看就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


网站名称:在linux系统下apache的默认安装路径怎么看-创新互联
本文URL:http://bjjierui.cn/article/ggdss.html

其他资讯