微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

私人Blog服务搭建

这是一个简单的架构主要是为了说明问题:如何搭建私人博客服务
采用的项目是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服务搭建

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐