{"id":13990643,"url":"https://github.com/hwdsl2/setup-ghost-blog","last_synced_at":"2025-07-22T13:30:30.208Z","repository":{"id":108588706,"uuid":"55856408","full_name":"hwdsl2/setup-ghost-blog","owner":"hwdsl2","description":"Script to install your own Ghost blog, with Nginx and ModSecurity/Naxsi web application firewall. Supports multiple blogs.","archived":true,"fork":false,"pushed_at":"2020-06-29T02:21:08.000Z","size":294,"stargazers_count":140,"open_issues_count":0,"forks_count":34,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-08-09T13:17:35.764Z","etag":null,"topics":["blog","ghost","ghost-blog","javascript","modsecurity","naxsi","nginx","node","nodejs","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hwdsl2.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"hwdsl2","ko_fi":"hwdsl2"}},"created_at":"2016-04-09T17:00:43.000Z","updated_at":"2024-02-15T08:20:51.000Z","dependencies_parsed_at":"2023-04-01T03:04:00.584Z","dependency_job_id":null,"html_url":"https://github.com/hwdsl2/setup-ghost-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwdsl2%2Fsetup-ghost-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwdsl2%2Fsetup-ghost-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwdsl2%2Fsetup-ghost-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwdsl2%2Fsetup-ghost-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hwdsl2","download_url":"https://codeload.github.com/hwdsl2/setup-ghost-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227098907,"owners_count":17730665,"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":["blog","ghost","ghost-blog","javascript","modsecurity","naxsi","nginx","node","nodejs","wordpress"],"created_at":"2024-08-09T13:03:03.030Z","updated_at":"2024-11-29T10:31:11.152Z","avatar_url":"https://github.com/hwdsl2.png","language":"Shell","funding_links":["https://github.com/sponsors/hwdsl2","https://ko-fi.com/hwdsl2"],"categories":["Shell"],"sub_categories":[],"readme":"# Ghost 博客平台一键安装脚本\n\n## 项目已存档\n\n:no_entry: **该项目已不再维护并进入存档模式。** :no_entry:\n\n如需了解最新版本的 Ghost 博客，请看 \u003ca href=\"https://github.com/TryGhost/Ghost\" target=\"_blank\"\u003e这里\u003c/a\u003e。\n\n*其他语言版本: [English](README.md), [简体中文](README-zh.md).*\n\n使用 Linux 脚本一键搭建你自己的 \u003ca href=\"https://github.com/TryGhost/Ghost\" target=\"_blank\"\u003eGhost 博客平台\u003c/a\u003e。支持 Ubuntu, Debian 和 CentOS 系统。为了达到更佳的性能与安全性，将同时安装 \u003ca href=\"http://nginx.org/en/\" target=\"_blank\"\u003eNginx\u003c/a\u003e (作为反向代理)，以及 Web 应用防火墙 \u003ca href=\"https://www.modsecurity.org/\" target=\"_blank\"\u003eModSecurity\u003c/a\u003e 或者 \u003ca href=\"https://github.com/nbs-system/naxsi\" target=\"_blank\"\u003eNaxsi\u003c/a\u003e。\n\n基于 Node.js 技术构建，Ghost 博客是一个简约并且现代的\u003ca href=\"https://ghost.org/vs/wordpress/\" target=\"_blank\"\u003e WordPress 替代品\u003c/a\u003e。它设计精美，使用方便，完全开源，并且对所有人都是免费的。\n\n**新：** 在同一台服务器上 **安装多个博客**！只需再次运行脚本，并指定新的完整域名作为参数。\n\n\u003ca href=\"https://blog.ls20.com/install-ghost-0-3-3-with-nginx-and-modsecurity/\" target=\"_blank\"\u003e**\u0026raquo; 相关教程： Ghost Blog Auto Setup with Nginx and ModSecurity**\u003c/a\u003e \u003ca href=\"https://blog.ls20.com/install-ghost-0-4-with-nginx-and-naxsi-on-ubuntu/\" target=\"_blank\"\u003e**(or Naxsi)**\u003c/a\u003e\n\n## 系统要求\n\n一个专用服务器或虚拟专用服务器 (VPS)，**全新安装** 以下系统：   \n- Ubuntu 16.04 (Xenial) or 14.04 (Trusty)\n- Debian 9 (Stretch) or 8 (Jessie)\n- CentOS 7 or 6\n\n**注：** 需要至少 **512 MB** 内存。\n\n:warning: **不要** 在你的 PC 或者 Mac 上运行这些脚本！它们只能用在服务器上！\n\n## 安装说明\n\n:no_entry: **该项目已不再维护并进入存档模式。** :no_entry:\n\n如需了解最新版本的 Ghost 博客，请看 \u003ca href=\"https://github.com/TryGhost/Ghost\" target=\"_blank\"\u003e这里\u003c/a\u003e。\n\n首先，更新你的系统： 运行 `apt-get update \u0026\u0026 apt-get dist-upgrade` (Ubuntu/Debian) 或者 `yum update` (CentOS) 并重启。这一步是可选的，但推荐。\n\n#### 选择 ModSecurity 防火墙：\n\n```\nwget https://git.io/ghost-nginx-modsecurity -O ghost-setup.sh\nsudo bash ghost-setup.sh BLOG_FULL_DOMAIN_NAME\n```\n\n#### 选择 Naxsi 防火墙：\n\n```\nwget https://git.io/ghost-nginx-naxsi -O ghost-setup.sh\nsudo bash ghost-setup.sh BLOG_FULL_DOMAIN_NAME\n```\n\n**注：** 请把上面的参数替换为你的博客的完整域名。\n\n:warning: 更新的 Ghost 博客版本（比如 2.x）可以在 \u003ca href=\"https://github.com/TryGhost/Ghost\" target=\"_blank\"\u003e这里\u003c/a\u003e 找到。但是如果你想要安装较旧的 0.11.14 版本，可以使用这些脚本。\n\n## 授权协议\n\n版权所有 (C) 2015-2018 \u003ca href=\"https://www.linkedin.com/in/linsongui\" target=\"_blank\"\u003eLin Song\u003c/a\u003e \u003ca href=\"https://www.linkedin.com/in/linsongui\" target=\"_blank\"\u003e\u003cimg src=\"https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png\" width=\"160\" height=\"25\" border=\"0\" alt=\"View my profile on LinkedIn\"\u003e\u003c/a\u003e   \n基于 \u003ca href=\"https://blog.igbuend.com/dude-looks-like-a-ghost/\" target=\"_blank\"\u003eHerman Stevens 的工作\u003c/a\u003e （版权所有 2013）\n\n特别感谢 \u003ca href=\"https://raymii.org\" target=\"_blank\"\u003eRemy van Elst\u003c/a\u003e 和 \u003ca href=\"https://philio.me\" target=\"_blank\"\u003ePhil Bayfield\u003c/a\u003e 提供有益的建议。\n\n本程序为自由软件，在自由软件联盟发布的\u003ca href=\"https://www.gnu.org/licenses/gpl.html\" target=\"_blank\"\u003e GNU 通用公共许可协议\u003c/a\u003e的约束下，你可以对其进行再发布及修改。协议版本为第三版或（随你）更新的版本。   \n我们希望发布的这款程序有用，但不保证，甚至不保证它有经济价值和适合特定用途。详情参见GNU通用公共许可协议。   \n你理当已收到一份GNU通用公共许可协议的副本，如果没有，请查阅 \u003chttp://www.gnu.org/licenses/\u003e   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwdsl2%2Fsetup-ghost-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwdsl2%2Fsetup-ghost-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwdsl2%2Fsetup-ghost-blog/lists"}