Ghost博客平台指南:[1]在MacOS安装Ghost

时间:2026-02-16 11:50:01

1、进入Node.js官网兼侧。下载适用于Mac OS X的‘.pkg’安科眠装包,进行安装。

如距糟珠果是.tar.gz包,则将Node拷贝到 /usr/local/bin/node,再将npm 拷贝到 /usr/local/bin/npm 

Ghost博客平台指南:[1]在MacOS安装Ghost

1、从Ghost官方网站下载压缩包。解压后放到Ghost文件夹里面(比如 /ghost/)。

Ghost博客平台指南:[1]在MacOS安装Ghost

2、进入Ghost安装目录,在命令行输入下面的命令来安装Ghost。

    

    cd /ghost/  

    sudo npm install --production  

    cp config.example.js config.js  

Ghost博客平台指南:[1]在MacOS安装Ghost

1、启动Ghost博客程序

    npm start --production

Ghost博客平台指南:[1]在MacOS安装Ghost

2、浏览 127.0.0.1:2368,查看新安装的Ghost博客。

Ghost博客平台指南:[1]在MacOS安装Ghost

3、进入 127.0.0.1:2368/ghost 填写登录信息。开始写博客!

Ghost博客平台指南:[1]在MacOS安装Ghost

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com