一、安装软件
yum install php-fpm nginx mariadb-server tree vim wget bash-completion bash-completion-extras lrzsz net-tools sysstat iotop iftop htop unzip nc nmap telnet bc psmisc httpd-tools bind-utils
二、检查nginx和php
三、配置
yum install -y httpd mysql mysql-server php php-mysql
启动apache mysql
service httpd start
service mysqld start
让apache mysql开机启动
chkconfig httpd on
chkconfig mysqld on
vim /var/www/html/info.php
<?php
phpinfo();
?>
安装wordpress
下载解压后将wordpress目录放到 /var/www/html/
wordpress运行需要一个数据库,在mysql中建一个
新建一个数据库
mysql -uroot -p
create database wordpress;