[root@web01 blog]# rz -y[root@web01 blog]# unzip wordpress-4.6.zip[root@web01 blog]# mv wordpress-4.6.zip /tools/[root@web01 blog]# mv wordpress/* .[root@web01 blog]# chown -R nginx.nginx blog/[root@web01 blog]# /application/nginx/sbin/nginx -t[root@web01 blog]# /application/nginx/sbin/nginx -s reload
mysqldump -uroot -p123456 -A -B --events|gzip >/tmp/bak.sql.gzscp /tmp/bak.sql.gz root@172.16.1.51:/tools改hosts172.16.1.8 web01172.16.1.51 db01 db01.etiantian.org
mysql> create database wordpress;Query OK, 1 row affected (0.01 sec)mysql> grant all on wordpress.* to wordpress@'172.16.1.%' identified by 'oldboy123';Query OK, 0 rows affected (0.07 sec)mysql> flush privileges;Query OK, 0 rows affected (0.09 sec)mysql> quitBye
-------------------------------------------------------------------------------------------------php
/archives/%post_id%.htmlhtml