修改主机名使 用 提 供 的 软 件 包 和 vmware 提 供 的 centos7.2 操 作 系 统 , 完 成 LNMP+WordPress
部署。部署完成后,进行登录,最后提交 WordPress 首页和后 台管理界面。(设置 WordPress
名称为自己的姓名+BLOG,例如张三,则 WordPress 首页显示张三 BLOG,答案的截图需体现这点) 配置YUM源
[root@localhost ~]# hostnamectl set-hostname server1
关闭防火墙[root@server1 ~]# setenforce 0
[root@server1 ~]# systemctl stop firewalld
[root@server1 ~]# mkdir /opt/centos
[root@server1 ~]# moun /root/CentOS-7-x86_64-DVD-1511.iso /opt/centos/
[root@server1 ~]# mv lnmp/ /opt/
[root@server1 ~]# mount -a
mount: /dev/loop0 is write-protected, mounting read-only
[root@server1 ~]# rm -rf /etc/yum.repos.d
define(‘DB_NAME’, ‘wordpress’);
define(‘DB_USER’, ‘root’);
define(‘DB_PASSWORD’, ‘123456’);
define(‘DB_HOST’, ‘localhost’);
define(‘DB_CHARSET’, ‘utf8’);
/** 数据库整理类型。如不确定请勿更改 /
define(‘DB_COLLATE’, ‘’);
[root@server1 html]# chmod -R 777 ./
[root@server1 html]# systemctl start nginx php-fpm
[root@server1 html]# curl -L http://192.168.200.20



