macOS 安装配置 Ghost
准备工作
支持的 Node.js 版本(推荐 node@12)
安装 Yarn 并设置源为 taobao 镜像源
安装 Ghost CLI
使用 Yarn 全局安装 Ghost-CLI:
查看当前安装的 Ghost-CLI 版本:
Ghost-CLI version: 1.11.0
安装 Ghost
使用终端工具进入要安装 Ghost 的目录中:
在当前目录安装 Ghost:
Tips: 此命令下安装的 Ghost 为
development
模式,且使用 SQLite3 数据库。
等待安装完成后,检查当前安装的 Ghost 版本:
Ghost-CLI version: 1.11.0 Ghost version: 2.31.1 (at ~/Dev/ghost)
配置 Ghost
安装完成后,会自动启动 Ghost,使用浏览器访问 http://localhost:2368/ghost/
,根据提示注册管理员账号。
管理 Ghost
查看已安装的 Ghost 列表:
启动 Ghost:
关闭 Ghost:
重启 Ghost:
参考文献
Last updated
Was this helpful?