博客
关于我
CentOS7 运维 - 搭建WordPress论坛 | 超详细 | MySQL安装使用
阅读量:528 次
发布时间:2019-03-07

本文共 1248 字,大约阅读时间需要 4 分钟。

CentOS7 运维 - 搭建WordPress论坛

更新时间:2021年1月31日
使用版本:5.6
官方下载地址

准备环境

  • 服务器操作系统:CentOS7
  • 部署服务器:Apache HTTP
  • 数据库:MySQL
  • 框架:WordPress

一、安装Apache HTTP

sudo yum install httpd

安装完毕后,启动服务

systemctl start httpd.service	#启动服务systemctl status httpd.service	#查看服务状态

关闭防火墙,使用其他设备测试

systemctl stop firewalld.service

二、安装MySQL

在线下载MySQL的安装包

wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

开始安装MySQL

rpm -ivh mysql57-community-release-el7-8.noarch.rpm

安装MySQL服务

过程可能会非常漫长,所以这里推荐使用

cd /etc/yum.repos.d/yum -y install mysql-server

启动MySQL

systemctl start mysqld

修改MySQL密码

查看临时密码

grep 'temporary password' /var/log/mysqld.log

使用临时密码登录MySQL

mysql -u root -p

修改MySQL密码

ALTER USER 'root'@'localhost' IDENTIFIED BY '密码';

在MySQL中新建数据库

创建一个叫wordpress的数据库

create database wordpress;

三、安装PHP

yum -y install epel-releaserpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpmyum install php70wyum install php70w-fpm php70w-mysql php70w-xml php70w-mbstring php70w-openssl php70w-gd# 安装php70的扩展[必须要]

四、安装WordPress

如果下载速度过慢可尝试下载

##此处为官方源wget https://cn.wordpress.org/latest-zh_CN.tar.gz

使用 tar 解压文件

tar  -zxvf latest-zh_CN.tar.gz

将文件复制到 /var/www/html 下

cp -rf wordpress/* /var/www/html/

在此填入数据库名、数据库用户名以及密码后点击提交
填写站点信息
安装完成
登录你的站点
如有疑问或哪个步骤出现问题,请在下方留言

转载地址:http://xwunz.baihongyu.com/

你可能感兴趣的文章
mysql ansi nulls_SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON 什么意思
查看>>
multi swiper bug solution
查看>>
MySQL Binlog 日志监听与 Spring 集成实战
查看>>
MySQL binlog三种模式
查看>>
multi-angle cosine and sines
查看>>
Mysql Can't connect to MySQL server
查看>>
mysql case when 乱码_Mysql CASE WHEN 用法
查看>>
Multicast1
查看>>
mysql client library_MySQL数据库之zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法...
查看>>
MySQL Cluster 7.0.36 发布
查看>>
Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
查看>>
MySQL Cluster与MGR集群实战
查看>>
multipart/form-data与application/octet-stream的区别、application/x-www-form-urlencoded
查看>>
mysql cmake 报错,MySQL云服务器应用及cmake报错解决办法
查看>>
Multiple websites on single instance of IIS
查看>>
mysql CONCAT()函数拼接有NULL
查看>>
multiprocessing.Manager 嵌套共享对象不适用于队列
查看>>
multiprocessing.pool.map 和带有两个参数的函数
查看>>
MYSQL CONCAT函数
查看>>
multiprocessing.Pool:map_async 和 imap 有什么区别?
查看>>