LAMP环境和软件版本
| 名称 | 版本号 | 查询命令 |
|---|---|---|
| linux系统 | CentOS Linux release 7.7.1908 (Core) | cat /etc/redhat-release |
| Apache | httpd-2.4.6-90.el7.centos.x86_64 | rpm -qa | grep httpd |
| mariadb | mariadb-server-5.5.64-1.el7.x86_64 | rpm -qa | grep mariadb |
| php | php-5.4.16-46.el7.x86_64 | rpm -qa | grep php |
一、安装Apache
1、查看是否安装过Apache。
rpm -qa | grep httpd
2、有就卸载httpd。
yum remove -y "httpd*"
3、重新安装httpd。
yum install -y httpd
4、查看启动状态。
systemctl status httpd
5、启动httpd。
systemctl start httpd
6、添加开机启动。
systemctl enable httpd
7、设置防火墙开放tcp80端口。
f

centos7&spm=1001.2101.3001.5002&articleId=102812570&d=1&t=3&u=2b12a5c2898d44e198ffa6636c9e94ef)
1万+

被折叠的 条评论
为什么被折叠?



