How to install Ghost on Ubuntu Server 14.04 LTS

Source: Internet
Author: User
Tags install node

How to install Ghost on Ubuntu Server 14.04 LTS

Ghost is an excellent blog platform with beautiful design, easy to use, and completely free of charge. It is also an open-source software with source code shared on github. By January 2014, we can feel that the interface is more concise, and the analysis charts can be adjusted. The split-screen display method makes editing easier.

Now, we will explain how to install Ghost on Ubuntu Server 14.04 LTS.

1. The first step is to install some additional packages through the Ubuntu update command.

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 *
Install Node. js
./Configure
Make
Sudo make install

Build a Node. js development environment in Ubuntu 14.04

3. Download and install 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. Configure Ghost
Sudonano config. example. js

Find the Production Section, and set:
Host: '2017. 0.0.1 ',

To:
Host: '0. 0.0.0 ',

Create a Ghost user
Sudoadduser -- shell/bin/bash -- gecos 'ghost application' Ghost
Sudochown-R ghost: ghost/var/www/ghost/

Log On with the "ghost" User
Su-ghost
Cd/var/www/ghost/

Now that you have logged on with the "ghost" user, you can start the 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.