NoteOnMe博客平台搭建
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
王子玥 05aed570b2 更新 'init.sql' 3 years ago
.vscode first 删除 3 years ago
bootstrap-4.3.1-dist first 删除 3 years ago
css first 删除 3 years ago
highlight first 删除 3 years ago
image first 删除 3 years ago
images first 删除 3 years ago
js first 删除 3 years ago
saas first 删除 3 years ago
.DS_Store first 3 years ago
.Rhistory first 3 years ago
Dockerfile.txt first 3 years ago
README.md Initial commit 3 years ago
callback.php first 3 years ago
comment.php first 3 years ago
edit_article.php first 3 years ago
extra.js first 3 years ago
feedback.php first 3 years ago
index.php first 3 years ago
init.sql 更新 'init.sql' 3 years ago
jquery.markdown.js first 3 years ago
jquery.min.js first 3 years ago
login.php first 3 years ago
logout.php first 3 years ago
markdown.css first 3 years ago
markdown.php first 3 years ago
pdo.php first 3 years ago
personal_page.php first 3 years ago
personal_page2.php first 3 years ago
php.ini first 3 years ago
readme.md first 3 years ago
require.js first 3 years ago
save_article.php first 3 years ago
search.php first 3 years ago
search_help.php first 3 years ago
signup.php first 3 years ago
test1.php first 3 years ago
test2.php first 3 years ago
test8.js first 3 years ago
test9.php first 3 years ago
test10.php first 3 years ago
try.php first 3 years ago
upload_action.php first 3 years ago
view.php first 3 years ago
view2.php first 3 years ago
view3.php first 3 years ago
workspace.code-workspace first 3 years ago

readme.md

项目简介-博客平台搭建

搭建博客平台,可供用户进行博文发表,支持markdown语法,代码高亮显示,英文OCR,博文撰写同时的动态预览等功能。运用云数据库提高服务的可扩展性,运用负载均衡器减轻单点服务器的压力。

代码结构

-- app2

-- im2latex_master OCR模型

--php,js文件

Dockerfile

部署运行方式:

  1. 申请ucloud云主机

  2. 在云主机上使用容器部署ngnix,php,python环境

    • 进入项目目录

    • 创建docker镜像,创建container

docker build -t wangziyue/php-ngnix-python .
docker run -d --rm -v /var/app2/:/app/ -p 80:80  --privileged=true  --name php-nginx-python wangziyue/php-ngnix-python

  1. 申请ucloud的云数据库,修改pdo.php中数据库地址

    云数据库

  2. 在云数据库中运行init.sql

  3. 访问 ip:/index.php

可选:创建ucloud负载均衡器,从镜像再创建n个云主机,然后将负载均衡器与云主机ip绑定

负载均衡器

SaaS应用效果截图:

  • 主页

    主页

  • 用户登录界面

    用户登录

  • 博客markdown编辑器

    支持markdown语法,代码高亮显示,英文OCR,博文撰写同时的动态预览等功能

    markdown编辑器

OCR功能

ocr1

ocr

  • 博客页面

    博客页面

  • 评论区

评论区

  • 搜索功能

    搜索

  • 服务器压力测试

    单节点

    单节点

    双节点两个节点