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:
Modified into
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: