基于lamp搭建wordpress
[root@localhost ~]# systemctl restart network
[root@localhost ~]# ping baidu.com
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
检查yum源
[root@localhost ~]# yum repolist
搭建 LAMP 环境,使用 yum 安装
[root@localhost ~]# yum -y install httpd php php-mysql mariadb mariadb-server
添加 php 页面测试文件
[root@localhost ~]# cd /var/www/html/
[root@localhost html]# vim index.php
<?php
phpinfo()
?>
启动 apche,通过进程和端口查看是否成功
[root@localhost html]# systemctl restart httpd
[root@localhost html]# ps -ef |grep httpd
[root@localhost html]# ss -lntp |grep httpd
访问 php 测试页面
[root@localhost html]# firefox 192.168.12.5
安装 wordpress
[root@localhost html]# cp ‘/tmp/VMwareDnD/8030946e/wordpress-4.8.1-zh_CN.tar.gz’ ./
[root@lo