CentOS7.3安装部署wordpress

                          CentOS7.3安装部署wordpress

Wordpress简介

 WordPress是使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设属于自己的网站。也可以把 WordPress当作一个内容管理系统(CMS)来使用。

WordPress是一款个人博客系统,并逐步演化成一款内容管理系统软件,它是使用PHP语言和MySQL数据库开发的。用户可以在支持 PHP 和 MySQL数据库的服务器上使用自己的博客。
搭建环境介绍
地域:华南 1可用区c
实例规格:ecs.sn1ne.large
CPU:2核
内存:4 GB
服务器操作系统:操作系统: CentOS 7.4 64位
一、 下载配置所需要的安装包 (wordpress mysql)

 [root@luchao ~]# yum install -y wget
 [root@luchao /]# wget https://cn.wordpress.org/wordpress-4.8.1-zh_CN.zip    

[root@luchao /]# wget
http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
image

二、 安装lamp+vsftp
[root@luchao /]# yum install -y httpd*
[root@luchao /]# yum install -y php*
[root@luchao /]# yum install -y vsftd*
三、 安装mysql

[root@luchao /]# rpm -ivh mysql-community-release-el7-5.noarch.rpm

image

[root@luchao /]# yum install mysql-server
image

四、 设置开机启动、关闭firewalld和selinux

   [root@luchao /]# systemctl enable httpd
    [root@luchao /]# systemctl enable mysqld
    [root@luchao /]# systemctl enable vsftpd
    [root@luchao /]# systemctl stop firewalld

[root@luchao /]# systemctl disable firewalld
[root@luchao /]# setenforce 0
[root@luchao /]# vim /etc/selinux/config
image

五、 配置lamp和vsftp
1、 创建mysql设置root账户密码
[root@luchao /]# systemctl start mysql
[root@luchao /]# mysql_secure_installation
2、 创建wordpress库
[root@luchao /]# mysql -u root –p

          mysql> show databases;

mysql> create database wordpress;
mysql> exit;
image

3、 配置httpd
[root@luchao /]# vi /etc/httpd/conf/httpd.conf
image

4、 配置vsftp
[root@luchao /]# vim /etc/vsftpd/vsftpd.conf
image

[root@luchao /]# useradd wpftp -s /sbin/nologin
[root@luchao /]# passwd wpftp
5、 解压wordpress
[root@luchao /]# cp wordpress-4.8.1-zh_CN.zip /var/www/html/
[root@luchao /]# cd /var/www/html/
[root@luchao html]# yum install -y unzip
[root@luchao html]# unzip wordpress-4.8.1-zh_CN.zip
之后重启 http mysql csftp 服务
六、 检查环境和验证安装
http://ip/wordpass

image
image

image

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值