centos7:
yum -y install mariadb-server mariadb
systemctl start mariadb
systemctl enable mariadb
mysqladmin -u root password 000000
配置mysql数据库:
mysql -uroot -p000000
create database wordpress;
grant all privileges on *.* to root@localhost identified by '000000' with grant option;
grant all privileges on *.* to root@"%" identified by '000000' with grant option;
FLUSH PRIVILEGES;
yum install -y php php-mysql php-gd
yum install unzip -y
yum install httpd -y
systemctl start httpd
unzip wordpress-4.7.3-zh_CN.zip
cd wordpress
cp -rvf ./* /var/www/html/
cd /var/www/html/
cp wp-config-sample.php wp-config.php
vi wp-config.php
参考LNMP文档
chmod 777 ./*
systemctl restart httpd.service
systemctl enable httpd.service