First of all, how I know I am using debian, ubuntu or centOS. Try this command
> cat /etc/issue
Debian GNU/Linux 6.0 \n \l
Yeah, I am using Debian 6.0
Download the debian iOS from here https://www.debian.org/
https://www.debian.org/distrib/
I plan to use the latest version.
1. Set up System
add to the sudoers
http://sillycat.iyunv.com/blog/1154358
Check the IP
>/sbin/ifconfig -a
2. Install JAVA
It is really useful to follow this doc
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
>su root
>echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
>echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
>sudo apt-get update
>su carl
>sudo apt-get install oracle-java6-installer
>sudo apt-get install oracle-java7-installer
>sudo apt-get install oracle-java8-installer
>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Switch the java version
>sudo update-alternatives --config java
>sudo update-alternatives --config javac
> make prefix=/home/carl/tool/git-2.3.4 all
> make prefix=/home/carl/tool/git-2.3.4 install
Add the git to the /opt directory and add it to the path
Set the password Cache time
> git config --global credential.helper "cache --timeout=360000"
5. Install NodeJS Env
> wget http://nodejs.org/dist/v0.12.1/node-v0.12.1.tar.gz
> ./configure --prefix=/home/carl/tool/node-v0.12.1
make and install on the right location
6. Install memcache server
> wget http://www.memcached.org/files/memcached-1.4.22.tar.gz
> wget https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
unzip and install libevent first.
> ./configure --prefix=/home/carl/tool/memcached-1.4.22
make and install, adding to the path, start the server
> memcached -d -m 50 -p 11211 -u carl -l 0.0.0.0
7. Install RabbitMQ
Install the erlang first
> wget http://www.erlang.org/download/otp_src_17.4.tar.gz
>export LANG=C
configure and make and make install
Error Message:
configure: error: No curses library functions found
configure: error: /bin/bash '/home/phunware/install/otp_src_17.4/erts/configure' failed for erts
Unzip that file and change the sbin/rabbitmq-defaults, add the ERL_DIR path there.
Follow these command to start the rabbitMQ server
http://sillycat.iyunv.com/blog/2066116
Start the Server
>sudo sbin/rabbitmq-server
Check and Stop the Server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop