实验目标:安装lnmp,搭建知乎wecenter
实验步骤
- 安装nginx
- 安装php
- 安装mysql,并设置用户密码
- 搭建wordpress复制wordpress安装包,到虚拟机/,解压并赋权
unzip wordpress-4.9.4-zh_CN.zip
chmod -R 777 /wordpress
vim /etc/nginx/conf.d/blog.conf
systemctl restart nginx
echo 192.168.8.5 blog.benet.com >> /etc/hosts
- 登录
浏览器访问blog.benet.com
点击现在就开始
点击提交,现在安装
点击安装
http://blog.benet.com/wp-admin
登录yun71
http://blog.benet.com/wp-admin
实验结果:安装lnmp,搭建知乎wecenter