手机版
你好,游客 登录 注册
背景:
阅读新闻

如何在Ubuntu Server 14.04 LTS上安装Ghost

[日期:2015-01-17] 来源:Linux公社  作者:bobsmoke [字体: ]

Ghost是一个很优秀的博客平台,设计美观,使用简便,且完全免费。同时也是一款开源软件,源代码共享在github上。到2014年1月,我们能感觉到界面更趋于简洁,分析图表可调整,分屏显示的方式让编辑更加的简便。

好了,下面我们讲解下如何在Ubuntu Server 14.04 LTS上来进行Ghost的安装。

1.第一步,让我们通过Ubuntu的更新命令来安装一些我们需要的额外的包

sudo apt-get update
sudo apt-get upgrade -y
sudo aptitude install -y build-essential zip vim wget

2.下载和安装Node.js源码
wget http://nodejs.org/dist/node-latest.tar.gz
tar -xzf node-latest.tar.gz
cd node-v*
安装Node.js
./configure
make
sudo make install

Ubuntu 14.04下搭建Node.js开发环境  http://www.linuxidc.com/Linux/2014-12/110983.htm

3.下载和安装Ghost
sudomkdir -p /var/www/
cd /var/www/
sudowget https://ghost.org/zip/ghost-latest.zip
sudo unzip -d ghost ghost-latest.zip
cd ghost/
sudonpm install --production

4.配置Ghost
sudonano config.example.js

找到Production一节,将:
host: '127.0.0.1',

修改为:
host: '0.0.0.0',

创建Ghost用户
sudoadduser --shell /bin/bash --gecos 'Ghost application' ghost
sudochown -R ghost:ghost /var/www/ghost/

用“ghost”用户登录
su - ghost
cd /var/www/ghost/

现在你已经用“ghost”用户登录,可以启动Ghost了
npm start --production

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

点击这里查看原文

译者:bobsmoke

本文由 Linux公社翻译组 原创翻译  Linux公社 诚意奉献

Linux公社原创翻译频道http://www.linuxidc.com/topicnews.aspx?tid=15

本文永久更新链接地址http://www.linuxidc.com/Linux/2015-01/111913.htm

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款