Centos 7 Installation NODEJS development environment

Source: Internet
Author: User
Tags get ip mongodb server rabbitmq

"WiFi Connection"
1. View WiFi Device identification
$ IW Dev | grep Interface
2. Enable WiFi
$ IP Link Set wlp2s0 up
3. Enter WiFi authentication
Wpa_supplicant-b-I wlp2s0-c < (wpa_passphrase "Fast_home" "xxxxxxxxxx")
4. DHCP Get IP
Dhclient Wlp2s0
5. Check WiFi connection
IP Addr Show Wlp2s0


"Install NodeJS"
1. Prepare the Order:
Yum-y install gcc make gcc-c++ openssl-devel wget
2. Download the source code and unzip:
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
TAR-ZVXF node-v0.10.26.tar.gz
3. Compiling and Installing:
Make && make install
4. Verify that the installation configuration is successful:
Node-v

"Installing MongoDB 3.0.7"
1. Download the installation package file
$wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.0.7.tgz
2. Unzip the installation package
$tar-ZXVF mongodb-linux-x86_64-rhel70-3.0.7.tgz
3. Move the folder
$MV Mongodb-linux-x86_64-rhel70-3.0.7/usr/local/lib/mongodb
4. Create a data path
$mkdir/usr/local/lib/mongodb/data
$mkdir/usr/local/lib/mongodb/data/db
5. Edit the configuration file "/usr/local/lib/mongodb/mongod.conf"
$vim/usr/local/lib/mongodb/mongod.conf
Enter the following and save the exit:

Dbpath=/usr/local/lib/mongodb/data/dblogpath=/usr/local/lib/mongodb/data/mongodb.loglogappend == 127.0.0.1Journal=true

6. Connect Mongod, MONGOs, MONGO files
$LN-S/usr/local/lib/mongodb/bin/mongod/usr/local/bin/mongod
$LN-S/usr/local/lib/mongodb/bin/mongos/usr/local/bin/mongos
$LN-S/usr/local/lib/mongodb/bin/mongo/usr/local/bin/mongo
7. Edit the/etc/rc.d/init.d/mongod file
$vim/etc/rc.d/init.d/mongod
Enter the following and save the exit:

#!/bin/SH . /etc/rc.d/init.d/Functionsconfig="/usr/local/lib/mongodb/mongod.conf" Program="/usr/local/bin/mongod"Mongopid=`PS-ef |grep 'Mongod'|grep-Vgrep|awk '{print $}'' Test-X $PROGRAM | | Exit0 Case " $" inchstart) Ulimit-N thelog_begin_msg"starting MongoDB Server"$PROGRAM-F $CONFIG &log_end_msg0     ;; Stop) log_begin_msg"stopping MongoDB Server"    if[!-Z"$MONGOPID"]; Then      Kill- the$MONGOPIDfilog_end_msg0   ;; *) log_success_msg"usage:/etc/init.d/mongodb {start|stop}"Exit1EsacExit0

8. Set/etc/rc.d/init.d/mongod "is executable" permission
$chmod +x/etc/rc.d/init.d/mongod
9. Start the service
$service Mongod Start
10. Stop the Service
$service Mongod Stop


"Installing Redis 3.0.5"
1. Installing TCL
$yum-y Install Tcl
2. Download the source file
$wget http://download.redis.io/releases/redis-3.0.5.tar.gz
3. Unzip the package
$tar-ZXVF redis-3.0.5.tar.gz
4. Compiling
$CD redis-3.0.5
$make
5, testing, installation
$CD SRC
$make Test
$make Install
6. Installation Services
$CD:
$./utils/install_server.sh
7. Rename script startup file/etc/rc.d/init.d/redis_6379
$MV/etc/rc.d/init.d/redis_6379/etc/rc.d/init.d/redis
8. Start the service
$service Redis Start
9. Start the client, test
$redis-CLI
Set id0001 ABCDEFG
Get id0001
10. Close the service
$service Redis Stop

"Install RABBITMQ 3.5.6"
1. Installing Erlang (Reference: http://blog.csdn.net/yecong111/article/details/9132997
Https://github.com/yrashk/kerl)
1.1. Now Erlang compiles the installation tool
$ Curl-o Https://raw.githubusercontent.com/yrashk/kerl/master/kerl
$ chmod a+x Kerl
1.2. View the Erlang version and download, compile
$./kerl List Releases
$./kerl Build 18.1 18.1
1.3. Install the compiled Erlang
$./kerl Install 18.1/usr/local/lib/erl
1.4. Check the installed Erlang
$./kerl List Installations
1.5. Activation
$ . /usr/local/lib/erl/activate
1.6. Verify that Erlang is installed
$ erl-version
1.7. Connection File
$LN-S/usr/local/lib/erl/bin/erl/usr/local/bin/erl
2. Download RABBITMQ tar Package
$ wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-generic-unix-3.5.6.tar.gz
3. Decompression
$tar-ZXVF rabbitmq-server-generic-unix-3.5.6.tar.gz
$MV RABBITMQ_SERVER-3.5.6/USR/LOCAL/LIB/RABBITMQ
4. Connection file
$LN-S/usr/local/lib/rabbitmq/sbin/rabbitmq-server/usr/local/bin/rabbitmq-server
$LN-S/usr/local/lib/rabbitmq/sbin/rabbitmqctl/usr/local/bin/rabbitmqctl
$LN-S/usr/local/lib/rabbitmq/sbin/rabbitmq-defaults/usr/local/bin/rabbitmq-defaults
$LN-S/usr/local/lib/rabbitmq/sbin/rabbitmq-env/usr/local/bin/rabbitmq-env
$LN-S/usr/local/lib/rabbitmq/sbin/rabbitmq-plugins/usr/local/bin/rabbitmq-plugins
5. Start the service
$RABBITMQ-server Start
6, install the plug-in
$RABBITMQ-plugins Enable Rabbitmq_management

"Install Webstorm 10.0.4"
1. Download tar file
$ wget http://download-cf.jetbrains.com/webstorm/WebStorm-10.0.4.tar.gz
2. Unzip the package
$tar-ZXVF webstorm-10.0.4.tar.gz
$MV/USR/LOCAL/LIB/WEBSTORM10
3. Installation
$CD/usr/local/lib/webstorm10/bin
$./webstorm.sh
4. Registration
User or company Name:
Mkany
===== LICENSE key=====
28326-12042010
00000ggr1k3lc6ttpmuju10x7z60vd
Yjqywkifkjiu1hx4zfrzarasasjild
fogz9qw5p! U6iiao "HLWMA6T" ck!sx
===== LICENSE END =====

Centos 7 Installation NODEJS development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.