How to install Monkey + nodejs +hexo


#1

I test wordpress ,works well , but I think hexo is better ,for it is a html blog.
Add user

 useradd -M -s /sbin/nologin www

Install monkey, a light http server,works well for arm server

apt-get update
apt-get install build-essential 
wget http://monkey-project.com/releases/1.5/monkey-1.5.5.tar.gz
tar zxfv monkey-1.5.5.tar.gz
cp -r /root/monkey-1.5.5  /usr/local/monkey
./configure --malloc-libc  --default-port=80 --default-user=www 
make
/usr/local/monkey/bin/monkey

Now you can check the webserver
http://ip
Install Nodejs

apt-get install -y curl
curl -sL https://deb.nodesource.com/setup | bash -
apt-get install -y nodejs

Check if it works

node -v
npm -v

Install hexo

npm install -g hexo

Creat blog dir

mkdir -p /home/wwwroot/hexo
chown -R www:www /home/wwwroot/hexo

Init hexo

hexo init /home/wwwroot/hexo
cd /home/wwwroot/hexo
npm install

Creat Blog html

hexo g

Setting Monkey Conf

nano /usr/local/monkey/conf/sites/default

Change DocumentRoot to DocumentRoot /home/wwwroot/hexo/public
Kill monkey PID or reboot
Then run

/usr/local/monkey/bin/monkey --daemon

Now the hexo works,check it.
http://ip
You can enjoy hexo blog now.

This is my test blog
http://212.47.239.196/
Good luck!