实验目标:安装lnmp,搭建知乎wecenter

实验步骤

  1. 安装nginx

rpm安装lnmp,搭建知乎_mysql

  1. 安装php

rpm安装lnmp,搭建知乎_知乎_02

  1. 安装mysql,并设置用户密码

rpm安装lnmp,搭建知乎_知乎_03

  1. 搭建wordpress复制wordpress安装包,到虚拟机/,解压并赋权
    unzip wordpress-4.9.4-zh_CN.zip
    chmod -R 777 /wordpress
    vim /etc/nginx/conf.d/blog.conf

rpm安装lnmp,搭建知乎_知乎_04

systemctl restart nginx

rpm安装lnmp,搭建知乎_nginx_05


echo 192.168.8.5 blog.benet.com >> /etc/hosts

  1. 登录

http://blog.benet.com

rpm安装lnmp,搭建知乎_知乎_06


浏览器访问blog.benet.com

点击现在就开始

rpm安装lnmp,搭建知乎_nginx_07


点击提交,现在安装

rpm安装lnmp,搭建知乎_nginx_08


点击安装

rpm安装lnmp,搭建知乎_mysql_09


rpm安装lnmp,搭建知乎_mysql_10


http://blog.benet.com/wp-admin

rpm安装lnmp,搭建知乎_nginx_11


登录yun71

http://blog.benet.com/wp-admin

rpm安装lnmp,搭建知乎_mysql_12


实验结果:安装lnmp,搭建知乎wecenter