2016年12月29日 星期四

Raspberrt Pi3 [nodejs , PM2 , Redis ] 注意事項

>> $sudo raspi-config  系統参數設定
>> p3 linux edit tool is vi , nano
>> node install use download and make 才能安裝新版
>> pm2 安裝 $ npm install -g pm2 => /opt/nodejs/bin/pm2 中直執行 或 加入 evn 環境變數中 $PATH
>> 安裝 Readis $sudo apt-get install readis-server 後 以 pm2 掛載啟動
>> readis-server 安裝後掛於 $/etc/init.d/redis-server 可以執行啟動
>> node.js 安裝於 /opt/nodejs/bin 中執行相關 系統套件

==============================================
[Pi3 install node.js v4.xx] 

sudo apt-get install git;
cd NodeJs-Raspberry-Pi;
chmod +x Install-Node.sh;
sudo ./Install-Node.sh;
cd .. && rm -R -f NodeJs-Raspberry-Pi/;


node -v;
npm -v;

===============================================

[Pi3 install PM2] 
$ [sudo] npm install pm2 -g

===============================================
[ Redis server Install ]
# install  for  apt-get  

$sudo apt-get update
$sudo apt
-get install redis-server

#server start up
$ redis-server

# check the redis-server status
$ redis-cli ping
PONG

#respon  PONG the redis-server is working now!