tutorial on installing the Ghost Blog platform on the Ubuntu system _node.js

Source: Internet
Author: User
Tags install node

Today we will install a blog platform ghost on the Ubuntu Server 14.04 LTS (trusty).

Ghost is a beautifully designed release platform that is easy to use and free for anyone. It is free open source software (FOSS), its source code on the GitHub. As of January 2015 (LCTT: The original 2014, should be 2015), its interface is very simple and analysis of the surface of the V-plate. The editor uses a very convenient split-screen display.
So with this step, you have a clear tutorial on installing Ghost on Ubuntu Server:
1. Upgrade Ubuntu

The first step is to run the Ubuntu software upgrade and install a series of additional packages that are needed.

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

2. Download and install Node.js source code

 wget http://nodejs.org/dist/node-latest.tar.gz
 tar-xzf node-latest.tar.gz
 cd node-v*

Now, we use the following command to install Node.js:

 ./configure
 make
 sudo make install

3. Download and install Ghost

 sudo mkdir-p/var/www/
 cd/var/www/
 sudo wget https://ghost.org/zip/ghost-latest.zip
 sudo unzip-d ghost Ghost-latest.zip
 cd ghost/
 sudo npm install--production

4. Configure Ghost

 sudo nano config.example.js

In the "Production" field, you will:

 Host: ' 127.0.0.1 ',

Modified into

 Host: ' 0.0.0.0 ',

Create Ghost User

 sudo adduser--shell/bin/bash--gecos ' Ghost application ' Ghost
 sudo chown-r ghost:ghost/var/www/ghost/

Now start ghost, you need to log in as a "ghost" user.

 Su-ghost
 cd/var/www/ghost/

You are now logged in as a "ghost" user and can start ghost:

 NPM Start--production

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.