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. ...

Upgrade Ghost

I have run Ghost for quite some time now and I have been through two upgrade process so I think it will be a good idea to save a procedure for easy upgrading. I found the instruction here. Manually upgrade Ghost I usually use manual upgrade method because I don’t inspect the automatic scripts yet if it is compatible with my installation. # cd /var/www/html/ghost # mkdir temp # cd temp/ # curl -L -O https://ghost.org/zip/ghost-latest.zip # unzip ghost-latest.zip # cd .. # cp temp/*.md temp/*.js temp/*.json . # rm -R core # cp -R temp/core . # cp -R temp/content/themes/casper content/themes # npm install --production # rm -R temp # su ghost -c /var/www/html/ghost/starter.sh -s /bin/sh Reference http://www.howtoinstallghost.com/how-to-update-ghost/ ...

Puppet Master-Agent Installation on FreeBSD

Puppet is a software which can automate configuration and management of machines and software running on them. This tool has great benefits for system administrator because it helps sysadmin to be the dream of every sysadmin, a lazy sysadmin. Puppet has great support for many operating system. Unfortunately its installation on my favourite OS, FreeBSD, is not so smooth. An introduction of Puppet installation which I found in BSD Magazine January 2012 edition is a starting point but I have to make some modification due to some of deprecated configurations. So, here I want to show you how to install and configure the basic of Puppet in FreeBSD in its master-agent scenario. ...