Archive for January 18th, 2010

  • Cluster, Load balancing, SAN Technology

    Monday, January 18th, 2010

    What is a cluster In its simplest form, a cluster is two or more computers that work together to provide a solution. This should not be confused with a more common client-server model of computing where an application may be logically divided such that one or more clients request services of one or more servers. [...]

  • Important Linux Commands

    Monday, January 18th, 2010

    • apropos whatis Show commands pertinent to string. See also threadsafe • man -t man | ps2pdf – > man.pdf make a pdf of a manual page • which command Show full path name of command • time command See how long a command takes • time cat Start stopwatch. Ctrl-d to stop. See also [...]

  • How to setup install memcache server

    Monday, January 18th, 2010

    step to install memcache server curl -O http://www.monkey.org/~provos/libevent-1.1a.tar.gz ./configure && make && make install curl -O http://www.danga.com/memcached/dist/memcached-1.1.12.tar.gz ./configure && make && make install yum install libevent useradd memcached password = test123 mkdir /var/run/memcached && chown memcached:memcached /var/run/memcached memcached -d -p 11211 -u memcached -m 1024 -c 1024 -P /var/run/memcached/memcached.pid to check memcache server port is [...]

  • Tcp kernel Tuning Parameters

    Monday, January 18th, 2010

    #Edited by Manoj # Reuse sockets in the time-wait state net.ipv4.tcp_tw_reuse = 1 # Widen local port range net.ipv4.ip_local_port_range = 1024 65023 # Bump up TCP socket queuer to help with syn floods net.ipv4.tcp_max_syn_backlog = 20480 # Increase number of incoming connections backlog net.core.netdev_max_backlog = 40000 # Increase the tcp-time-wait buckets pool size net.ipv4.tcp_max_tw_buckets = [...]

  • Install memcache & json

    Monday, January 18th, 2010

    cd /tmp && wget http://pecl.php.net/get/memcache-2.2.5.tgz && tar xvzf memcache-2.2.5.tgz cd memcache-2.2.5 /home/manoj/dev/php/bin/phpize && ./configure –with-php-config=/home/manoj/dev/php/bin/php-config> –enable-memcache && make cp /usr/local/src/memcache-2.2.5/modules/memcache.so /home/manoj/dev/php/lib/ cd /tmp wget http://opensource.dynamoid.com/igbinary-1.0.2.tar.gz tar xvzf igbinary-1.0.2.tar.gz cd igbinary-1.0.2 phpize ./configure && make && make install edit /etc/php.d/igbinary.ini extension=igbinary.so Install memcache in default php ##################################### /usr/bin/php-config cd memcache-2.2.5 /usr/bin/phpize && ./configure –with-php-config=/usr/bin/php-config> –enable-memcache && [...]

  • How to install GeoIP and mod_geoip on centos for apache

    Monday, January 18th, 2010

    1) yum install GeoIP GeoIP-devel GeoIP-data zlib-devel 2) mkdir /usr/local/share/GeoIP 3) Download the latest Country and City database files from maxmind wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gunzip GeoIP.dat.gz gunzip GeoLiteCity.dat.gz 4) yum install httpd-devel apr-devel 5) wget http://geolite.maxmind.com/download/geoip/api/mod_geoip2/ 6) tar xvzf mod_geoip2_1.2.5.tar.gz && cd mod_geoip2_1.2.5 7) apxs -i -a -L/usr/lib64 -I/usr/include -lGeoIP -c mod_geoip.c vi /etc/httpd/conf/httpd.conf [...]