ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

私人Blog服务搭建

2019-06-09 15:55:29  阅读:244  来源: 互联网

标签:php Blog nginx systemctl wordpress mysql 私人 mariadb 搭建


这是一个简单的架构主要是为了说明问题:如何搭建私人博客服务
采用的项目是wordpress官网下载的项目
项目版本:https://cn.wordpress.org/wordpress-4.9.4-zh_CN.tar.gz
系统是CentOS7-LNMP模式
基础环境:关闭安全机制、、、
下载 nginxweb服务、mysql数据库、php语言解析库、php-mysql链接数据库工具、php-fpm(使nginx服务解析php语言库)
#yum install -y nginx mariadb mariadb-server php php-mysql php-fpm

1、nginx部分:设置启动并开启自启动
#systemctl start nginx
#systemctl enable nginx
关于nginx配置文件部分请参考其它章节

2、mysql部分:设置启动并开启自启动
#systemctl # systemctl enable mariadbstart mariadb
#systemctl enable mariadb

3、上传项目到/usr/share/nginx/html 并授权777
上传就省略了;# chmod 777 /usr/share/nginx/html

4、给数据设置登录密码
#mysqladmin -uroot password '123'

5、创建项目使用的数据库
MariaDB [(none)]> create database wordpress;
Query OK, 1 row affected (0.00 sec)

6、创建一个专用的WordPress blog管理用户
MariaDB [(none)]> grant all on wordpress.* to wordpress@'localhost' identified by '123';
Query OK, 0 rows affected (0.00 sec)

7、测试登录
私人Blog服务搭建
私人Blog服务搭建
私人Blog服务搭建
私人Blog服务搭建
私人Blog服务搭建
私人Blog服务搭建
私人Blog服务搭建

标签:php,Blog,nginx,systemctl,wordpress,mysql,私人,mariadb,搭建
来源: https://blog.51cto.com/kangxi/2406492

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有