nodejs在Linux上的安装
1.创建用户
useradddingbing-d/home/dingbing
passwddingbing
db1234
db1234
2.安装python2.7
su-dingbing
cd
mkdirsetup
cdsetup
wgethttp://python.org/ftp/python/2.7.4/Python-2.7.4.tgz
gzip-dPython-2.7.4.tgz
tar-xvfPython-2.7.4.tar
cdPython-2.7.4
./configure--prefix=$HOME/python27
make&&makeinstall
cd
vi.bash_profile
PATH=$HOME/python27/bin/:$PATH
:wq
su-dingbing
db1234
3.安装Nodejs
cdsetup
wgethttp://nodejs.org/dist/v0.10.3/node-v0.10.3.tar.gz
gzip-dnode-v0.10.3.tar.gz
tar-xvfnode-v0.10.3.tar
cdnode-v0.10.3
./configure--prefix=$HOME/nodejs0.10.3
make&&makeinstall
cd
vi.bash_profile
PATH=$HOME/python27/bin/:$HOME/nodejs0.10.3/bin/:$PATH
NODE_PATH=$HOME/nodejs0.10.3/lib/node_modules/
:wq
su-dingbing
db1234
4.安装mysql
npminstallmysql-g
5.安装express
npminstallexpress-gd
6.创建工程