用 ASP.NET 的博客系统,感觉老费事儿,编辑器也支持得不好。还是用回 ghost 算了,反正也不用改。

安装 nodejs

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash
sudo apt update
sudo apt install -y nodejs

安装 ghost

sudo npm install -g ghost-cli@latest

sudo mkdir -p /abc/ghost
sudo chown xxx:xxx /abc/ghost
sudo chmod 775 /abc/ghost
cd /abc/ghost
ghost install

ghost install local

安装过程要配置一些东西,如网站名称、数据库等。

ghost 管理地址 http://localhost:2368/ghost/

更新 ghost

ghost update

ghost update --v2

卸载 ghost

ghost uninstall

nginx 配置也得改下,端口不一样。