1.上传wordpress文件并安装zip和unzip来解压
wordpress
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
wordpress
7.启动服务.关闭防火墙
systemctl start php-fpm
systemctl start nginx
systemctl start mysql
systemctl stop firewalld

8.在浏览器中输入自己ip地址
wordpress

相关文章:

  • 2021-12-31
  • 2021-07-06
  • 2021-12-11
  • 2021-08-12
  • 2021-10-11
  • 2021-09-15
  • 2021-11-26
猜你喜欢
  • 2021-07-25
  • 2021-07-04
相关资源
相似解决方案