Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
365 lines (249 sloc) 6.35 KB

Install prerequisites

Centos 7.3

Distribution packages

yum install -y epel-release git gcc gcc-c++ libxml2-devel libxslt-devel openssl-devel

Python >= 3.4

yum install -y python3-devel

MariaDB >= 10.1

# in /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos73-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum install -y MariaDB MariaDB-server MariaDB-devel

systemctl start mariadb
systemctl enable mariadb

mysql_secure_installation

RabbitMQ >= 3.5

# In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
yum install -y epel-release
yum install -y erlang socat

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_11/rabbitmq-server-3.6.11-1.el7.noarch.rpm

rpm -i rabbitmq-server-3.6.11-1.el7.noarch.rpm

systemctl start rabbitmq-server
systemctl enable rabbitmq-server

Redis

yum install -y redis

systemctl start redis
systemctl enable redis

Java >= 1.7 (only for development setup)

yum install -y java-1.8.0-openjdk-headless

Centos 6

Distribution packages

yum install -y epel-release git gcc gcc-c++ libxml2-devel libxslt-devel openssl-devel

Python >= 3.4

yum install -y python34-devel

GCC >= 4.6

yum install -y devtoolset-6-gcc devtoolset-6-gcc-c++
# this needs to be done in every new shell
source /opt/rh/devtoolset-6/enable

MariaDB >= 10.1

# in /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum install -y MariaDB MariaDB-server MariaDB-devel

service mysql start
chkconfig mysql on

mysql_secure_installation

RabbitMQ >= 3.5

# in /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/6
gpgcheck=1
gpgkey=https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
yum install -y erlang socat

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_11/rabbitmq-server-3.6.11-1.el6.noarch.rpm

rpm -i rabbitmq-server-3.6.11-1.el6.noarch.rpm

service rabbitmq-server start
chkconfig rabbitmq-server on

Redis

yum install -y redis

service redis start
chkconfig redis on

Java >= 1.7 (only for development setup)

yum install -y java-1.8.0-openjdk-headless

debian 9 (strech)

Distribution packages

apt-get install -y git build-essential libxml2-dev libxslt-dev zlib1g-dev libssl-dev

Python >= 3.4

apt-get install -y python3-dev

MariaDB >= 10.1

apt-get install -y mariadb-client mariadb-server libmariadb-dev libmariadbclient-dev

RabbitMQ >= 3.5

apt-get install -y rabbitmq-server

systemctl start rabbitmq-server
systemctl enable rabbitmq-server

Redis

apt-get install -y redis-server

systemctl start redis-server
systemctl enable redis-server

Java >= 1.7 (only for development setup)

apt-get install -y openjdk-8-jre-headless

debian 8 (jessie)

Distribution packages

apt-get install -y git build-essential libxml2-dev libxslt-dev zlib1g-dev libssl-dev

Python >= 3.4

apt-get install -y python3-dev

MariaDB >= 10.1

apt-get install -y software-properties-common
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.rackspeed.de/mariadb.org/repo/10.1/debian jessie main'

apt-get update
apt-get install -y mariadb-client mariadb-server libmariadbd-dev libmariadbclient-dev

RabbitMQ >= 3.5

apt-get install -y erlang socat

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_11/rabbitmq-server_3.6.11-1_all.deb

dpkg -i rabbitmq-server_3.6.11-1_all.deb

systemctl start rabbitmq-server
systemctl enable rabbitmq-server

Redis

apt-get install -y redis-server

Java >= 1.7 (only for development setup)

apt-get install -y openjdk-7-jre-headless

Ubuntu 16.04 (Xenial Xerus)

Distribution packages

apt-get install -y git build-essential libxml2-dev libxslt-dev zlib1g-dev libssl-dev

Python >= 3.4

apt-get install -y python3-dev

MariaDB >= 10.1

apt-get install software-properties-common
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.rackspeed.de/mariadb.org/repo/10.1/ubuntu xenial main'

apt-get update
apt-get install -y mariadb-client mariadb-server libmariadbd-dev libmariadbclient-dev

RabbitMQ >= 3.5

apt-get install -y rabbitmq-server

systemctl start rabbitmq-server
systemctl enable rabbitmq-server

Redis

apt-get install -y redis-server

Java >= 1.7 (only for development setup)

apt-get install -y openjdk-8-jre-headless

Ubuntu 14.04 (Trusty Tahr)

Distribution packages

apt-get install -y git build-essential libxml2-dev libxslt-dev zlib1g-dev

Python >= 3.4

apt-get install -y python3-dev python3.4-venv

MariaDB >= 10.1

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.rackspeed.de/mariadb.org/repo/10.1/ubuntu trusty main'

apt-get update
apt-get install -y mariadb-client mariadb-server libmariadbd-dev libmariadbclient-dev

RabbitMQ >= 3.5

apt-get install -y erlang-nox socat

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_11/rabbitmq-server_3.6.11-1_all.deb

dpkg -i rabbitmq-server_3.6.11-1_all.deb

Redis

apt-get install -y redis-server

Java >= 1.7 (only for development setup)

apt-get install -y openjdk-7-jre-headless

Further reading