基于LNMP架构部署wordpress

[root@localhost ~]# yum -y install unzip
[root@localhost ~]# unzip wordpress-5.2.3.zip
[root@localhost ~]# rm -rf /usr/local/nginx/html/*
[root@localhost ~]# cp -R wordpress/* /usr/local/nginx/html/
[root@localhost ~]# mysql -uroot -p'111111'

mysql> create database wordpress;
Query OK, 1 row affected (0.00 sec)

mysql> use wordpress;
Database changed

mysql> grant all on wordpress.* to 'wordpress'@'localhost' identified by '111111';
Query OK, 0 rows affected, 1 warning (0.07 sec)

mysql> flush privileges;

mysql> exit
Bye

mysql> grant all on bbs.* to 'bbs'@'localhost' identified by 'bbs123456';
Query OK, 0 rows affected, 1 warning (0.07 sec)

mysql> flush privileges;

[root@localhost ~]# killall -1 nginx
[root@localhost ~]# /etc/init.d/mysqld restart
[root@localhost ~]# cd /usr/local/nginx/html/
[root@localhost html]# chmod -R 777 ./

猜你喜欢

转载自www.cnblogs.com/lyqlyqlyq/p/11641708.html