Ghost 0.7.0 安裝流程
跟大家分享一下剛剛架設 Ghost 這個超讚的 Blogging Platform 的過程吧
Requirement
首先,你需要:
一臺乾淨的 Ubuntu 14.04 LTS VPS
Installation
$ apt-get update
$ apt-get upgrade
$ apt-get install g++ make python python-software-properties
$ add-apt-repository ppa:chris-lea/node.js
$ apt-get update
$ apt-get install nodejs
$ cd
$ wget https://ghost.org/zip/ghost-latest.zip
$ unzip ghost-latest.zip -d ghost
$ cd ghost
$ npm install --production
接下來,請將 config.example.js
複製一下,然後重新命名成 config.js
。
打開 config.js
,將
server: {
host: '127.0.0.1',
port: '2368'
}
修改為(注意有兩處需要修改)
server: {
host: '0.0.0.0',
port: '80'
}
保存。然後執行 npm start
就 OK 囉!
接下來,打開你的瀏覽器,訪問 http://ServerIPAddress
,就可以看到最新版的 Ghost 已經安裝在你的 VPS 上面了! 管理者網址是:http://ServerIPAddress/ghost
。你可以進去寫文章、修改設定。