构建 LAMP+WordPress

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
 

发布了18 篇原创文章 · 获赞 0 · 访问量 459

猜你喜欢

转载自blog.csdn.net/weixin_45678149/article/details/104578972