在linux系统下apache的默认安装路径在哪
发布时间 - 2020-11-05 00:00:00 点击率:次如果采用RPM包安装,安装路径应在 /etc/httpd目录下。
(学习教程推荐:apache)
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
# 报错
# 的是
# 目录下
# 用了
# 可以看到
# 应在
# 重启
# 配置文件
# 源代码
# 默认页
相关栏目:
【
网站优化151355 】
【
网络推广146373 】
【
网络技术251813 】
【
AI营销90571 】
相关推荐:
深圳网站制作培训,深圳哪些招聘网站比较好?
Laravel中的Facade(门面)到底是什么原理
韩国服务器如何优化跨境访问实现高效连接?
Laravel怎么设置路由分组Prefix_Laravel多级路由嵌套与命名空间隔离【步骤】
昵图网官网入口 昵图网素材平台官方入口
Laravel如何理解并使用服务容器(Service Container)_Laravel依赖注入与容器绑定说明
🚀拖拽式CMS建站能否实现高效与个性化并存?
高性能网站服务器部署指南:稳定运行与安全配置优化方案
如何在橙子建站中快速调整背景颜色?
如何快速搭建虚拟主机网站?新手必看指南
通义万相免费版怎么用_通义万相免费版使用方法详细指南【教程】
网站广告牌制作方法,街上的广告牌,横幅,用PS还是其他软件做的?
Java垃圾回收器的方法和原理总结
Claude怎样写约束型提示词_Claude约束提示词写法【教程】
佛山网站制作系统,佛山企业变更地址网上办理步骤?
Laravel怎么进行数据库回滚_Laravel Migration数据库版本控制与回滚操作
HTML5打空格有哪些误区_新手常犯的空格使用错误【技巧】
深圳网站制作平台,深圳市做网站好的公司有哪些?
php后缀怎么变mp4格式错误_修改扩展名提示格式不对怎么办【技巧】
Laravel模型事件有哪些_Laravel Model Event生命周期详解
如何在万网利用已有域名快速建站?
Laravel DB事务怎么使用_Laravel数据库事务回滚操作
HTML透明颜色代码怎么让下拉菜单透明_下拉菜单透明背景指南【技巧】
iOS中将个别页面强制横屏其他页面竖屏
Laravel控制器是什么_Laravel MVC架构中Controller的作用与实践
如何用花生壳三步快速搭建专属网站?
合肥制作网站的公司有哪些,合肥聚美网络科技有限公司介绍?
rsync同步时出现rsync: failed to set times on “xxxx”: Operation not permitted
佛山企业网站制作公司有哪些,沟通100网上服务官网?
Laravel如何生成URL和重定向?(路由助手函数)
如何在HTML表单中获取用户输入并用JavaScript动态控制复利计算循环
Laravel如何处理文件下载请求?(Response示例)
Edge浏览器提示“由你的组织管理”怎么解决_去除浏览器托管提示【修复】
如何在阿里云高效完成企业建站全流程?
php增删改查怎么学_零基础入门php数据库操作必知基础【教程】
如何在不使用负向后查找的情况下匹配特定条件前的换行符
,网页ppt怎么弄成自己的ppt?
西安市网站制作公司,哪个相亲网站比较好?西安比较好的相亲网站?
如何选择PHP开源工具快速搭建网站?
Android仿QQ列表左滑删除操作
如何续费美橙建站之星域名及服务?
Laravel怎么上传文件_Laravel图片上传及存储配置
Laravel如何使用Passport实现OAuth2?(完整配置步骤)
PHP 实现电台节目表的智能时间匹配与今日/明日轮播逻辑
JavaScript Ajax实现异步通信
Laravel如何处理和验证JSON类型的数据库字段
Laravel怎么实现模型属性的自动加密
Laravel如何使用Spatie Media Library_Laravel图片上传管理与缩略图生成【步骤】
js实现获取鼠标当前的位置
Laravel Sail是什么_基于Docker的Laravel本地开发环境Sail入门


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 ~]#