Newly learned Nodejs, found in the installation of CentOS under the time, and windows have some different places, before the habit in the installation, go to Baidu out, solve the later, then all remember how to solve, but after a period of time, all forget the light, So after all in the blog inside, keep the time to come back to check.
This article demonstrates the installation of the Nodejs and Express development Framework on centos6.5
Software Environment:VMware 10CentOS 6.5
installation process:
yum-y Install gcc gcc-c++ openssl-devel
the path CD to/usr/local
wget Nodejs's official website source package address
tar zxvf nodejs source package file name
Nodejs folder after CD decompression
./configure--prefix=/usr/local/node
Make && make install
Vi/etc/profile
#set Nodejs Env
Export Node_home=/usr/local/node
Export path= $NODE _home/bin: $PATH
Export node_path= $NODE _home/lib/node_modules: $PATH
Source/etc/profile
node-v
Install Express
Global Installation
NPM install-g Express-generator This way will be the global installation Express
Installation of Nodejs under CentOS