Pras' Labs

InfluxDB Installation on CentOS 6

InfluxDB is an open-source, distributed, time series database with no external dependencies. In this documentation, I will show how to install InfluxDB on CentOS 6. Download InfluxDB wget https://s3.amazonaws.com/influxdb/influxdb-latest-1.x86_64.rpm Install InfluxDB sudo rpm -ivh influxdb-latest-1.x86_64.rpm Enable and start InfluxDB service sudo chkconfig influxdb on sudo service influxdb start Reference: http://influxdb.com/download/

Fluent Treasure Data (TD) Agent Installation on CentOS 6

Fluentd is an open source data collector, which lets you unify the data collection and consumption for a better use and understanding of data. In this documentation, I will show how to install fluentd (td-agent) on CentOS 6. Pre-installation: increase number of maximum file descriptors ulimit -n sudo vi /etc/security/limits.conf * soft nofile 65535 * hard nofile 65535 root soft nofile unlimited root hard nofile unlimited sudo reboot Pre-installation: network kernel optimization ...

Elasticsearch on CentOS 6

Elasticsearch is a distributed restful search and analytics. In this documentation, I will show how to install Elasticsearch on CentOS 6. Install Oracle Java wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u31-b13/server-jre-8u31-linux-x64.tar.gz sudo mkdir /opt/jre sudo tar zxf server-jre-8u31-linux-x64.tar.gz -C /opt/jre sudo update-alternatives --install /usr/bin/java java /opt/jre/jdk1.8.0_31/bin/java 2000 sudo update-alternatives --install /usr/bin/javac javac /opt/jre/jdk1.8.0_31/bin/javac 2000 sudo update-alternatives --display java sudo update-alternatives --display javac Import Elasticsearch GPG key sudo rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch Add Elasticsearch repository ...

Varnish 4 on CentOS 6

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture. In this documentation, I will show how to install Varnish 4 on CentOS 6. For first installation install Varnish repository ...

RVM for Managing Ruby Version on CentOS 6

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems. In this documentation I will show how to install RVM on CentOS 6.6. Install Development Tools sudo yum groupinstall "Development Tools" Install mpapis public key sudo gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 or if failed curl -sSL https://rvm.io/mpapis.asc | sudo gpg2 --import - Install RVM for multiuser installation ...

Redis on CentOS 6

Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. In this documentation, I will show how to install Redis on CentOS 6. Install Development Tools sudo yum groupinstall "Development Tools" Download and extract latest Redis package from http://redis.io/ wget http://download.redis.io/releases/redis-2.8.19.tar.gz tar zxf redis-2.8.19.tar.gz Go to redis directory and run make ...

Open Source Phusion Passenger Module for Nginx on CentOS 6

Phusion Passenger is a web server and application server for your web apps which built upon Ruby or NodeJS. In this documentation I will show how to install open source version of Phusion Passenger on CentOS 6.6 using Ruby gem installation. Check your Ruby location which ruby /usr/local/rvm/rubies/ruby-2.1.5/bin/ruby In this tutorial I assume your Ruby is installed using RVM Install passenger using gem command gem install passenger -V Install passenger module for nginx ...

MongoDB on CentOS 6

MongoDB is the only database that harnesses the innovations of NoSQL (flexibility, scalability, performance) and builds on the foundation of relational databases (expressive query language, secondary indexes, strong consistency). In this documentation, I will show how to install MongoDB on CentOS 6. Add MongoDB repository to yum sudo vi /etc/yum.repos.d/mongodb.repo [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1 Install MongoDB sudo yum install mongo-10gen mongo-10gen-server --exclude mongodb-org,mongodb-org-server Add this to /etc/yum.conf to prevent MongoDB from being upgraded ...

Memcached on CentOS 6

Memcached is free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. In this documentation I will show how to install memcached using yum package manager with Atomicorp repository. Install the latest Atomicorp repository from http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/ ...

Start Your Own Documentation Blog

I am trying to write again after some month was absent from touching any electronic notes (blogs). Actually I wanted to do it from a long time ago but I was afraid don’t have any material with qualities to be written. In reality, I realized that I have been encountering events that I must write about. After so long trying to make up my mind and gather my courage, I finally be able to put some ideas into my writing, starting with this re-introduction. ...