yum groupinstall "Development Tools" "Server Platform Development" -y
yum install httpd
yum install php
systemctl start httpd.service
# ss -tnl 80端口
yum install php-mysql mariadb-server -y
systemctl start mariadb.service
# ss -tnl 3306端口
tar -zxf wordpress-4.9.6.tar.gz
cd wordpress
\cp * /var/www/html/ -r
cd /var/www/html/
cp wp-config-sample.php wp-config.php
mysql
# MariaDB [(none)]> CREATE DATABASE wpdb;
#MariaDB [(none)]> GRANT ALL ON 数据库名字db.* TO 用户@'ip' IDENTIFIED BY '密码';
#MariaDB [(none)]> exit
vim wp-config.php
按照之前的mariadb的数据库填写
systemctl restart httpd.service
systemctl restart mariadb.service