cd /tmp/
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
Python Alternate Installation
1
2
3
4
5
6
tar xzf Python-3.6.6.tgz
cd Python-3.6.6
./configure --enable-optimizations
sudo make altinstall
sudo ln -sfn /usr/local/bin/python3.6 /usr/bin/python3.6
sudo yum install -y tcl
cd /tmp/
wget http://download.redis.io/releases/redis-3.2.6.tar.gz
tar xzf redis-3.2.6.tar.gz
cd redis-3.2.6
make
make test
sudo make install
Execute install script to generate redis config file, /etc/init.d script, install them and run redis server.
Set overcommit_memory to 1 (always overcommit, never check)
1
2
3
4
5
6
7
8
9
sudo sysctl vm.overcommit_memory=1
sudo sysctl -w fs.file-max=100000# to make the change permanent# open sysctl.conf for editing
sudo vim /etc/sysctl.conf
# add below line
vm.overcommit_memory=1
Redis guidances on why vm.overcommit_memory should be set to 1.
sudo vim /var/lib/pgsql/9.5/data/pg_hba.conf
# add appenligt md5 row keeping the order same# TYPE DATABASE USER ADDRESS METHOD# "local" is for Unix domain socket connections onlylocal all all peer
# IPv4 local connections:
host appenlight appenlight 127.0.0.1/32 md5
host all all 127.0.0.1/32 ident
service postgresql-9.5 restart
elastic search 6.x installation
install java
1
sudo yum -y install java-1.8.0-openjdk
install elastic search
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
sudo vi /etc/yum.repos.d/elasticsearch.repo
[Elasticsearch-6]name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1autorefresh=1type=rpm-md
sudo yum -y install elasticsearch
sudo service elasticsearch start
sudo service elasticsearch status
curl http://localhost:9200/
Below is the docker container used for testing above scripts. Make sure that the allocated RAM to docker is more than 5GB (Docker > Preferences > Resouces - Memory). Otherwise the container will be limited to the max docker RAM size.