Install WordPress
First create the library on MySQL now
Create DATABASE WordPress;
Create user
Grant all on wordpress.* to [email protected]'localhost'123456' ; flush privileges;
Adjust Nginx
vim/application/nginx/conf/extra/blog.conf Add index index.php index.html index.htm below localtion; restart Nginx /application/nginx/sbin/nginx-s Reload
Download WordPress
cd/home/daxian/tools/wget https://cn.wordpress.org/wordpress-4.9.1-zh_cn.tar.gz
Unzip
tar XF wordpress-4.9. 1-zh_cn. Tar . GZ copy all files from WordPress to Nginx/html/cp -a wordpress/* /application/nginx/ html/blog/
Authorization (This is less secure, the security method is described later)
chown -R www.www/application/nginx/html/blog/
can access the http://blog.daxian.com
Complete, some tables are generated in the database
Mysql> show tables; +---------------------------+| Tables_in_wordpress |+---------------------------+| Daxian_commentmeta | | daxian_comments | | Daxian_links | | daxian_options | | Daxian_postmeta | | daxian_posts | | Daxian_term_relationships | | daxian_term_taxonomy | | Daxian_termmeta | | daxian_terms | | Daxian_usermeta | | Daxian_users |+---------------------------+ in Set (0.00 sec)
Login to
Post a blog post
Build Complete!!!
Install PHP and build a blog (ii)