1. 安装 Node.js 及相关包

yum update -y
curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
yum -y install nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org

2. 安装 Ghost Client (ghost-cli)

cnpm i -g ghost-cli

3. 安装 Ghost

adduser ghost
mkdir /var/www
mkdir /var/www/ghost
chown ghost /var/www/ghost
su ghost
cd /var/www/ghost
ghost install local --db=sqlite3

4. Ghost命令

ghost stop
ghost start
ghost restart