wordpress安装
翻找网上的教程基本都是之前的
很多都不匹配,比如PHP版本过低不支持新版wordpress
这里做一个更新,每一步都有详细说明
1.部署apache服务
#安装http服务
[root@xiudaochengxian ~]# yum -y install httpd
#启动http服务,并加入开机启动项
[root@xiudaochengxian ~]# systemcel start httpd
[root@xiudaochengxian ~]# systemcel enable httpd
#查看http服务状态
[root@xiudaochengxian ~]# systemcel status httpd
#打开浏览器输入本机地址
出现apache默认界面即为安装成功
#关闭防火墙
[root@xiudaochengxian ~]# systemcel stop firewalld
2.部署MariaDB服务
也可用MySQL,但是MariaDB安装使用都方便
#安装mariadb
[root@xiudaochengxian ~]# yum -y install mariadb mariadb-server
#初始化数据库
[root@xiudaochengxian ~]# mysql_secure_installation
#启动数据库服务,并加入开机启动项
[root@xiudaochengxian ~]# systemcel start mariadb
[root@xiudaochengxian ~]# systemcel enable mariadb
#查看mariadb服务启动状态
[root@xiudaochengxian ~]# systemcel status mariadb
3.部署PHP服务
分界线下面是升级操作,非必须
#安装php和php-mysql(如果未安装此包,打开wordpress可能会报错)
[root@xiudaochengxian ~]# yum -y install php php-mysql