1.上传wordpress文件并安装zip和unzip来解压
mount /dev/cdrom /media/
yum -y install zip unzip
unzip wordpress -5.3.2.zip
2.将wordpress下的内容移动到nginx默认路径/data/sevser/nginx/html/下
3.启动mysql
systemctl start mysql
4.配置mysql数据库
mysql -u root -p
创建wordpress所需的数据库
mysql> CREATE DATABASE wordpress;
创建新用户账号
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO “test”@"localhost"IDENTIFIED BY “123”;
使配置生效
mysql> FLUSH PRIVILEGES;
6.更改配置文件
cd /data/sevser/nginx/html/
cp wp-config-sample.php wp-config.php
vim wp-config.php
7.启动服务.关闭防火墙
systemctl start php-fpm
systemctl start nginx
systemctl start mysql
systemctl stop firewalld
8.在浏览器中输入自己ip地址