Tutorial on installing the Ghost blog platform on Ubuntu, unzip tughost

Source: Internet
Author: User
Tags install node

Tutorial on installing the Ghost blog platform on Ubuntu, unzip tughost

Today, we will install a blog platform Ghost on Ubuntu Server 14.04 LTS (Trusty.

Ghost is a well-designed release platform that is easy to use and free to anyone. It is a free open-source software (FOSS) and its source code is on Github. As of January 2015 (LCTT: the original article is 2014 and should be 2015), its interface is very simple and there is an analysis Panel v. Editing uses a convenient split-screen display.
Therefore, we 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.

 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, run 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, set:

 host: '127.0.0.1',

Modify

 host: '0.0.0.0',

Create a Ghost user

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

Start Ghost now. You need to log on as the "ghost" user.

 su - ghost cd /var/www/ghost/

Now, you have logged on as a "ghost" user and can start Ghost:

 npm start --production

Related Article

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.