1.安装mysql
yum包管理工具
yum install -y yum -utils
查看yum源版本
yum repolist all | grep mysql
禁用8.0
yum -config-manager --disable mysql80-conmmunity
启用5.7
yum-config-manager --enable mysql57-community
安装mysql
yum install mysql-server
2.安装php
PHP源
rpm -ivh http://mirror.webtatic.com/yum/el7/epel-realease.rpm
查看yum源php版本
yum list | grep php
安装php
yum install php70w
3.安装PHP-mysql
yum install php-mysql
4.开启mysqld,httpd
chkconfig mysqld on
chkconfig httpd on
5.解压wordpress.tar.gz
tar -? wordpress.tar.gz
cp -rf wordpress/* /var/www/html
6.配置数据库
#mysql -uroot -p password newpassword
>create database wordpress;
>create user 'wpuser'@'localhost'
>
wordpress环境搭建(草稿)
最新推荐文章于 2024-06-28 18:53:58 发布