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/
...
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.
...
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 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.
...
Installation using FreeBSD ports Login as root, then to make sure our server’s hostname can be identified locally we need to edit /etc/hosts.
# ee /etc/hosts ::1 localhost localhost.example.com 127.0.0.1 localhost localhost.example.com 192.168.1.11 host.example.com Install MySQL Server with following command.
# cd /usr/ports/databases/mysql56-server # make -D BUILD_OPTIMIZED install clean # rehash After installation finished, run script for installing main database and tables used by MySQL.
# mysql_install_db --user=mysql –basedir=/usr/local/ Run following command to start MySQL daemon and create password for MySQL’s root. # mysqld_safe & # mysqladmin -u root password ’localpassword’ # mysqladmin -u root -h host.example.com password ‘remotepassword’
...
Instalation using FreeBSD ports Login as root then enter ports directory of Cyrus SASL and run following command.
# cd /usr/ports/security/cyrus-sasl2-saslauthd # make config ; make install clean # rehash Create file smtpd.conf in directory /usr/local/lib/sasl2/. # ee /usr/local/lib/sasl2/smtpd.conf
Then add following lines.
pwcheck_method: saslauthd mech_list: plain login Edit file rc.conf so that SASL Authentification server can start at boot time.
# ee /etc/rc.conf saslauthd_enable="YES" saslauthd_flags="-a pam" if you want to use other authentication mechanism such as LDAP, use following flags.
...
Installation Installation using FreeBSD ports Login as root, then to make sure our server’s hostname can be identified locally we need to edit /etc/hosts.
# ee /etc/hosts ::1 localhost localhost.example.com 127.0.0.1 localhost localhost.example.com 192.168.1.11 host.example.com Install Apache HTTP Server using following command, choose default for options, select OK.
# cd /usr/ports/www/apache22 # make config; make install clean # rehash After installation proses finished, change Apache configuration file.
# ee /usr/local/etc/apache22/httpd.conf ServerAdmin [email protected] ServerName host.example.com:80 To enable SSL support, uncomment following line.
...
Heartbeat is a daemon that provides cluster infrastructure (communication and membership) services to its clients. This allow clients to know appearance or disappearance of peer processes on other machines and to easily exchange message with them.(Heartbeat - Linux-HA)
Heartbeat clusters work only one on same network so if we setup different cluster (different authkeys) on same network it will show up as an error in log file. We can still setup more than one cluster in same network by setting different communication port for heartbeat.
...
Git is a distributed version control system version control system track history of a collection of files and includes the functionality to revert to another version.
Distributed version control system does not necessarily have a central server which stores data.
User can copy existing repository (cloning).
Every clone contains full history of the collection of files and a clone repository has the same functionality as the original repository.
Users with sufficient authorization can push changes from their local repositories to remote repositories, they can also fetch or pull changes from other repositories to their local Git repository.
...
When using DRBD, we can grow DRBD disk online so we do not need to disturb the production process we have in the server. The requirement to this feature is the backing block device can be resized online so it is possible to resize the DRBD disk. There are two criterias that must be filled.
The backing device must be managed by a logical volume manager such as LVM The resource must currently be in the Connected connection state. First, we need to grow the backing device on both nodes and make sure only one node in Primary node.
...