CentOS 安装 Apache 总结

环境:CentOS 7.4

1、关闭 firewall (防火墙)

https://blog.csdn.net/qq_37195375/article/details/114683004

2、关闭 SELINUX

https://blog.csdn.net/qq_37195375/article/details/114683295

3、安装 Apache

yum install httpd               #根据提示,输入Y安装即可成功安装
systemctl start httpd.service   #启动apache
systemctl stop httpd.service    #停止apache
systemctl restart httpd.service #重启apache
systemctl enable httpd.service  #设置apache开机启动

查看安装成功( apache 版本号)

httpd -v

显示下面内容,表示安装成功

Server version: Apache/2.4.6 (CentOS)
Server built:   Nov 16 2020 16:18:20

附加

CentOS 使用 yum 源安装 PHP 各版本、及 PHP 各扩展总结

https://blog.csdn.net/qq_37195375/article/details/114683486

CentOS 安装 MySQL 5.6 源码编译安装记录

https://blog.csdn.net/qq_37195375/article/details/114683541

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值