lynnchurch / NodeJSLearning

Some practice about Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJSLearning

Some practice about Node.js.

Installation

Ubuntu:

sudo apt-get update  
sudo apt-get install -y python-software-properties software-properties-common  
sudo add-apt-repository ppa:chris-lea/node.js  
sudo apt-get update  
sudo apt-get install nodejs 

Centos:

  • epel
yum install epel-release
  • nodejs
yum install nodejs

Upgrade

  • Ubuntu:
node -v  
sudo npm cache clean -f  
sudo npm install -g n  
sudo n stable  
node -v  (If the version information is incorrect,you shoud restart the machine.)

Other Tools

MySQL

  • Ubuntu:
sudo apt-get install mysql-server mysql-client
  • Centos:
yum -y install mariadb*  
systemctl start mariadb.service  
systemctl enable mariadb.service

Mongodb

  • Ubuntu:
sudo apt-get install mongodb
  • Centos:
yum install mongodb-server  
yum install mongodb

Redis

  • Ubuntu:
wget http://download.redis.io/releases/redis-stable.tar.gz  
tar xvfz redis-stable.tar.gz  
cd redis-stable  
sudo make
sudo make install
sudo make test  
  • Centos:
 yum install redis
 redis-server --version
 service redis start (启动服务)
 chkconfig redis on (开机自启动)

Sublime Text

  1. Access www.sublimetext.com and download it.
  2. sudo dpkg -i filename.deb

SSH

sudo apt-get install ssh

npm

  • Centos:
yum install npm

cnpm

sudo npm config set strict-ssl false  
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org

nodemon

sudo npm install -g nodemon

pm2

sudo npm install -g pm2

node-inspector

sudo npm install -g node-inspector

Keystone

should install mogodb

sudo npm install -g yo
sudo npm install -g generator-keystone

Meteor

curl https://install.meteor.com/ | sh

Ruby

Sass

gem install sass(should install Ruby)

Testing Tools

Jmeter

About

Some practice about Node.js

License:Apache License 2.0


Languages

Language:JavaScript 88.5%Language:HTML 10.8%Language:CSS 0.7%