一、准备事项:
1、准备两台干净的虚拟机,关闭防火墙,并已安装yum的base仓库和epel附加仓库,建议用阿里云仓库。
Last login: Fri Aug 12 17:22:26 2022
[root@localhost ~]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# ls
CentOS-Base.repo epel.repo
[root@localhost yum.repos.d]#
2、清理yum仓库缓存,和重新加载缓存。
[root@mariadb-server ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
[root@mariadb-server ~]# rm -rf /etc/cache/yum/
[root@mariadb-server ~]# yum makecache fast
2、一台命名为apache-server,用来安装apache服务和php服务;另外一台命名为mariadb-server,安装mariadb数据库服务。
3、准备好qq农场数据包。
二、安装Apache、php服务
1、yum -y install httpd mariadb mariadb-server php php-fpm php-mysql php-gd gd
(备注:php:主包,php-fpm:php管理进