接上一篇 环境:
LNMP架构环境配置 linux -nginx- mysql -php
部署博客产WordPress {#p-3}
1)配置Nginx
虚拟主机站点,域名为blog.baimei.com
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| server { listen 80; server_name blog.baimei.com; root /code/wordpress; index index.php index.html;
location ~ \.php$ { root /code/wordpress; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } |
2)重启nginx服务
systemctl restart nginx
3)获取wordpress
产品,解压并部署wordress
wget https://cn.wordpress.org/wordpress-5.0.3-zh_CN.tar.gz
tar xf wordpress-5.0.3-zh_CN.tar.gz
chown -R www.www /code/wordpress/
5)通过浏览器访问wordpress,并部署该产品