部署博客系统wordpress
sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config ####关闭selinx
setenforce 0
systemctl stop firewalld.service ###关闭防火墙
systemctl disable firewalld.service
yum -y install mariadb mariadb-server mariadb-libs php php-mysql php-gd php-fpm php-cli gd httpd
systemctl start httpd mariadb
mysqladmin -uroot password “123” 修改MYSQL密码
mysql -uroot -p123 进入mysql
create database tianyun; 创建tianyun数据库
vi vim /etc/httpd/conf.d/tianyun.conf
<VirtualHost *:80>
ServerName www.tianyun.com
ServerAlias ti