{"id":19400140,"url":"https://github.com/open-snail/plumemo-deploy","last_synced_at":"2025-10-09T10:17:48.380Z","repository":{"id":107717534,"uuid":"251641455","full_name":"open-snail/plumemo-deploy","owner":"open-snail","description":"plumemo一键部署脚本","archived":false,"fork":false,"pushed_at":"2020-04-15T09:16:26.000Z","size":40,"stargazers_count":11,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T00:51:56.679Z","etag":null,"topics":["mysql","shell"],"latest_commit_sha":null,"homepage":"https://www.plumemo.com/views/%E5%AE%89%E8%A3%85%E6%89%8B%E5%86%8C/2020/plumemo%E8%87%AA%E5%8A%A8%E5%8C%96%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC.html#%E7%AE%80%E4%BB%8B","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-snail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-31T15:12:12.000Z","updated_at":"2021-08-07T13:30:33.000Z","dependencies_parsed_at":"2023-06-08T20:30:22.017Z","dependency_job_id":null,"html_url":"https://github.com/open-snail/plumemo-deploy","commit_stats":null,"previous_names":["open-snail/plumemo-deploy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-snail%2Fplumemo-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-snail%2Fplumemo-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-snail%2Fplumemo-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-snail%2Fplumemo-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-snail","download_url":"https://codeload.github.com/open-snail/plumemo-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250578923,"owners_count":21453387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql","shell"],"created_at":"2024-11-10T11:13:09.350Z","updated_at":"2025-10-09T10:17:43.339Z","avatar_url":"https://github.com/open-snail.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ca href=\"https://github.com/byteblogs168/plumemo\" target=\"_blank\"\u003eplumemo\u003c/a\u003e\u003c/h1\u003e\n\n\u003e [Plumemo](https://www.plumemo.com/) 是一个轻量、易用、前后端分离的博客系统，为了解除开发人员对后端的束缚，真正做到的一个面向接口开发的博客系统。\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"JDK\" src=\"https://img.shields.io/badge/JDK-1.8-yellow.svg?style=flat-square\"/\u003e\u003c/a\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/release/halo-dev/halo.svg?style=flat-square\"/\u003e\u003c/a\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"GitHub All Releases\" src=\"https://img.shields.io/github/downloads/halo-dev/halo/total.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"Docker pulls\" src=\"https://img.shields.io/docker/pulls/ruibaby/halo?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n------------------------------\n\n## 简介\n\n**plumemo** [plumemo]，plume（羽） + memo（备忘录）\n\n\u003e 基于[SpringBoot](https://spring.io/projects/spring-boot/)实现零配置让系统的配置更简单，使用了[Mybatis-Plus](https://mp.baomidou.com/)快速开发框架，在不是复杂的查询操作下，无需写sql就可以快速完成接口编写。\n\u003e 后台管理系统使用了vue中流行的[ant](https://panjiachen.github.io/vue-element-admin-site/#/)，另外前后交互使用了[JWT](https://jwt.io/)作为令牌，进行权限、登录校验。。\n\n\n\u003e [官网](https://www.plumemo.com/) | [社区](https://www.byteblogs.com) | [QQ 交流群](https://shang.qq.com/wpa/qunwpa?idkey=4f8653da80e632ef86ca1d57ccf8751602940d1036c79b04a3a5bc668adf8864) | \n\n## 背景\n\u003e 由于plumemo 是前后端分离的，那么对于部署来说就一件很头疼的事情，主题、管理系统、后端java服务都需要配置安装配置。除此之外还是jdk、mysql、nginx配置无疑给很多小伙伴照成了一定的阻碍；为此经过几天的努力pluemeo-v1.0.0 安装脚本诞生了。\n\n## 功能介绍\n1. jdk\n2. mysql\n3. nginx\n4. 主题\n5. 管理系统\n\n## 操作步骤\n1. 把脚本上传到服务器（不做介绍）\n2. 添加可执行权限 ```chmod +x plumemo-v1.0.0.sh```\n3. 执行脚本 ```sh plumemo-v1.0.0.sh```\n\n![QQ截图20200331221608.png](http://image.byteblogs.com/3388e350b7548f68acf209d02120190f.png)\n\n下面您就可以根据你的选择进行安装:\n## 安装jdk,版本:jdk-8u144-linux-x64\n![QQ截图20200331222233.png](http://image.byteblogs.com/5d457dbe646179af7973fbec46e4c735.png)\n\n## 安装mysql,版本:5.7.28\n![QQ截图20200331224800.png](http://image.byteblogs.com/9aaa08107724f72a4476c954b89e7dd0.png)\n\n## 安装nginx,版本:1.17.9\n![QQ截图20200331225219.png](http://image.byteblogs.com/6b7bcabe5c1eb82389365609424b0d4e.png)\n## 安装plumemo主题\n![111.png](http://image.byteblogs.com/7269932fdd7f8ba760b50d8a119a60c0.png)\n## 安装plumemo管理系统\n![admin1.png](http://image.byteblogs.com/f9488ff8ea985d73d468f771c60a08b1.png)\n\n![admin2.png](http://image.byteblogs.com/bba546a5eada5b57e31e3b588e5f19e6.png)\n\n### 生成的启动脚本\n1. 添加可执行权限 ```chmod +x deploy.sh```\n2. 执行脚本 ```sh deploy.sh```\n\n![aa.png](http://image.byteblogs.com/321532365639f31b3b9f8ea8be0c6be2.png)\n\n### 配置nginx.conf\n```\n#user  nobody;\nworker_processes  1;\n\n#error_log  logs/error.log;\n#error_log  logs/error.log  notice;\n#error_log  logs/error.log  info;\n\n#pid        logs/nginx.pid;\n\nevents {\n    worker_connections  1024;\n}\n\nhttp {\n    include       mime.types;\n    default_type  application/octet-stream;\n\n    #log_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\n    #                  '$status $body_bytes_sent \"$http_referer\" '\n    #                  '\"$http_user_agent\" \"$http_x_forwarded_for\"';\n\n    #access_log  logs/access.log  main;\n\n    sendfile        on;\n    #tcp_nopush     on;\n\n    #keepalive_timeout  0;\n    keepalive_timeout  65;\n\n    #gzip  on;\n    gzip on;\n    gzip_min_length  1k;\n    gzip_buffers     4 16k;\n    gzip_http_version 1.0;\n    gzip_comp_level 2;\n    gzip_types       text/plain text/css text/xml text/javascript application/x-javascript application/xml application/rss+xml application/xhtml+xml application/atom_xml;\n    gzip_vary on;\n\n    proxy_set_header Host $host;\n\tproxy_set_header X-Real-IP $remote_addr;\n\tproxy_set_header REMOTE-HOST $remote_addr;\n\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\n    server {\n        listen       80;\n        server_name  localhost;\n\t\t\n        location ^~ / {\n                  # 配置主题访问地址\n                  # 这里需要改为您自己的地址\n\t\t  root /usr/local/plumemo/front;\n\t\t  index index.html index.htm;\n\t\t  try_files $uri $uri/ /index.html;\n        }\n\t\t\n        location /admin {\n                 # 配置后端管理系统访问地址\n\t\t # 这里需要改为您自己的地址\n\t\t root /usr/local/plumemo/;\n\t\t index index.html index.htm;\n\t\t try_files $uri $uri/ /admin/index.html;\n        }\n\n\t    location ^~ /api/blog {\n\t\t    index  index.html index.htm index.php;  \n\t\t\tindex  proxy_set_header Host $host;  \n\t\t\tindex  proxy_set_header X-Real-IP $remote_addr;  \n\t\t\tindex  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  \n\t\t\tproxy_pass http://localhost:8086/api/hello-blog-service; #后端服务器，具体配置upstream部分即可  \n        }\n\t\t\n    }\n}\n\n```\n至此安装已经完成，开启了您的博客之旅。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-snail%2Fplumemo-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-snail%2Fplumemo-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-snail%2Fplumemo-deploy/lists"}