本文共 1248 字,大约阅读时间需要 4 分钟。

sudo yum install httpd

systemctl start httpd.service #启动服务systemctl status httpd.service #查看服务状态

systemctl stop firewalld.service

wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

rpm -ivh mysql57-community-release-el7-8.noarch.rpm

过程可能会非常漫长,所以这里推荐使用
cd /etc/yum.repos.d/yum -y install mysql-server

systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log

mysql -u root -p

ALTER USER 'root'@'localhost' IDENTIFIED BY '密码';
创建一个叫wordpress的数据库
create database wordpress;

yum -y install epel-releaserpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpmyum install php70wyum install php70w-fpm php70w-mysql php70w-xml php70w-mbstring php70w-openssl php70w-gd# 安装php70的扩展[必须要]
如果下载速度过慢可尝试下载
##此处为官方源wget https://cn.wordpress.org/latest-zh_CN.tar.gz
使用 tar 解压文件
tar -zxvf latest-zh_CN.tar.gz
将文件复制到 /var/www/html 下
cp -rf wordpress/* /var/www/html/

填写站点信息
安装完成
登录你的站点
如有疑问或哪个步骤出现问题,请在下方留言 转载地址:http://xwunz.baihongyu.com/