Take a look at today's process of tossing Nodejs under Linux and learning from each other:
(Do not know why the source code installation, call NPM will always appear to find Npmlog errors, and then replaced with a binary to engage in, assuming that the bull cow know why.) I hope you can leave a message, thank you.
First step: Download the Nodejs binary library
wget http://nodejs.org/dist/v0.10.32/node-v0.10.32-linux-x64.tar.gz
Step two: Download Ghost Open Source code:
wget Https://ghost.org/zip/ghost-0.5.2.zip
Unzip the Nodejs and Ghost folders separately
Part III: Installation of NODEJS required frameworks and libraries:
./bin/npm-g Install--production
Fourth: Add JS Config file to node.
1:CD jump to the Ghost folder, otherwise there will be no Packet.json file errors found
2:vim change Config.js file set the address you want to listen to and port
3: Then use the absolute path call Nodet to join the configuration JS file:
.. /nodejs/bin/node Config.js
Fifth: Start the Nodejs service:
.. /NODEJS/BIN/NPM restart
Next you'll be able to type in the browser you just set up a listening URL and port in Config.js.
Install Nodejs build Ghost Personal Blog