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