Create new user

useradd ghost # add user
passwd ghost  # set password

usermod -aG wheel ghost # add sudo
su - ghost 

Install nginx

  • install nginx

install mysql

Install nodejs from source

  • 注意必须先安装node 后安装 ghost 而且 ghost的node 必须和node 版本一直
wet https://nodejs.org/dist/v6.11.2/node-v6.11.2.tar.gz
tar -zxvf node-v6.11.2.tar.gz
cd node-v6.11.2
./configure
make -j4
make install

安装ghost-cli

 npm i -g ghost-cli --registry=https://registry.npm.taobao.org

安装ghost

ghost install