Take a look at today's process of tossing Nodejs under Linux and learning from each other:
(Do not know why with the source code installation, call NPM will always appear to find Npmlog errors, and then replaced with a binary system to engage, if 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 separately in the Nodejs and ghost directories
Part III: Install the NODEJS required frameworks and libraries:
./bin/npm-g Install--production
Fourth: Add JS Config file to node.
1:CD jump to the Ghost directory, or there will be no Packet.json file errors found
2:vim Modify the Config.js file to set the address and port you want to listen to
3: Then use the absolute path to invoke Nodet add config js file:
.. /nodejs/bin/node Config.js
Fifth: Start the Nodejs service:
.. /NODEJS/BIN/NPM restart
Next you can enter in the browser you just set the listening URL and port in the Config.js
Install Nodejs everyone Ghost personal blog