1. 程式人生 > >新手玩個人server(阿裏雲)續二

新手玩個人server(阿裏雲)續二

ria pause 管理 debug timeout yum directory eth http

小二班一番廝殺:那英四強誕生:大家閨秀,小家碧玉。窈窕淑女,妍姿俊俏 。不解釋!

?不行!

陳冰,李嘉格,劉明湘。張碧晨。大多數的時候,僅僅要臉好看,一切都那麽自熱而然的順理成章。

盡管網上罵聲四起,黑壓壓一片,總有那麽一片不滿。憶往昔。快女十強美女寥寥無幾。眾人雲雲,不也發出過中性一片,大掃雅興。

迎合往往活的心力憔悴。從第一屆的梁博。張瑋。多亮。張赫宣。次奧,我竟然還記得。紅果果四個漢子,僅僅能佐證那英也喜歡漢子。

昨晚我仍舊沒能裝上node,由於報錯

Traceback (most recent call last):  
  File "../../tools/js2c.py", line 36, in <module>  
    import bz2  
ImportError: No module named bz2  
make[1]: *** [/home/softs/node-v0.8.12/out/Release/obj/gen/libraries.cc] Error 1  
make[1]: Leaving directory `/home/softs/node-v0.8.12/out'  
make: *** [node] Error 2  
一番折騰。原來裝Python的時候,忘記裝了bz2
yum -y install bzip2*  
cd /usr/local/src/Python-2.7.5/Modules/zlib
./configure ;  
make;  
make install  
cd /usr/local/src/Python-2.7.5
python setup.py install


然後回到/usr/local/src/node-v0.10.24

cd /usr/local/src/node-v0.10.24

make 

make install

node -v

v0.10.24

node成功安裝。


參考: http://flyer2010.iteye.com/blog/1699946

http://hxl2009.blog.51cto.com/779549/1031320

http://blog.csdn.net/liubo2012/article/details/8367603


npm -v
1.3.21

可見node包管理器npm也安裝好了。

 node
> console.log("hello Nodejs ");
hello Nodejs
測試成功


接著安裝express框架

 npm install express -g

[email protected] /usr/local/lib/node_modules/express
├── [email protected]
/* */ ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected])
突然想起我熟悉3的框架,當前裝了最新版4,於是卸載

npm uninstall express

又一次裝 指定版本號

npm install [email protected]* -g
[email protected] /usr/local/lib/node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], static

新手玩個人server(阿裏雲)續二