博客
关于我
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/

你可能感兴趣的文章
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named 'pandads'
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>