Install (Minimal CentOS)-Erlang-RabbitMQ and (Elixir-from source)
Install Cent OS
- Download minimal ISO from https://www.centos.org/download/
- Download Rufus from https://rufus.akeo.ie/ and make a bootable USB.
- Change startup options to boot from USB.
- On the boot screen click enter for "Install CentOS 7"
- Select Language and Click Continue
- Delete existing and Click Reclaim Space.
- Turn on Ethernet, note the IP address and give hostname and click Begin Installation
- Set root password
- click Reboot and remove USB
- Connect remotely using putty and login as root
Install Erlang
yum -y install epel-release
yum -y install wxGTK
yum -y install wget
cd /home
mkdir software
cd software
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum -y install erlang
Install RabbitMQ
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.0/rabbitmq-server-3.6.0-1.noarch.rpm
yum -y install rabbitmq-server-3.6.0-1.noarch.rpm
chkconfig rabbitmq-server on
/sbin/service rabbitmq-server start
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl add_user root password
rabbitmqctl set_user_tags root administrator
Install Elixir
yum install git
mkdir /opt/elixir
cd /opt/elixir
git clone https://github.com/elixir-lang/elixir.git /opt/elixir
make clean test
export PATH=$PATH:/opt/elixir/bin (or set it in file /etc/profile to persist)
Thats it!
Tools
tmux
yum -y install tmux
Thanks to http://www.jeramysingleton.com/install-erlang-and-elixir-on-centos-7-minimal/ for tips.
Comments