Ubuntu下安装Ghost博客系统

安装Nodejs

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

检查是否安装成功

root@hkvps:~# node -v
v0.10.37
root@hkvps:~# npm -v
1.4.28

安装Ghost

Ghost下载地址https://ghost.org/download/

wget https://ghost.org/zip/ghost-0.6.4.zip
unzip ghost-0.6.4.zip -d ghost
cd ghost
npm install --production

运行Ghost

npm start

可以通过127.0.0.1:2368来访问

通过nmp start来运行Ghost,退出后就会停止,因此需要一个方法让Ghost一直运行

Nginx配置SSL证书

申请Wosign免费SSL证书

申请地址: https://www.wosign.com/products/free_ssl.htm

申请成功后,收到类似于aquan.me_sha256_cn.zip的文件,解压后包含如下文件

	for Apache.zip
	for IIS.zip
	for Nginx.zip
	for Other Server.zip
	for Tomcat.zip

其中for Nginx.zip中包含如下两个文件,将其上传到VPS自定义位置。