Revisions
-
nghuuphuoc revised this gist
Dec 23, 2013 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ $ sudo nano /etc/sysctl.conf vm.overcommit_memory=1 $ sysctl vm.overcommit_memory=1 $ sysctl -w fs.file-max=100000 -
nghuuphuoc revised this gist
Dec 23, 2013 . 3 changed files with 11 additions and 5 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +0,0 @@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ // --- Compiling --- $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz $ tar xzvf redis-2.8.3.tar.gz $ cd redis-2.8.3 $ make $ make install // --- or using yum --- $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ $ sudo nano /etc/sysctl.conf vm.overcommit_memory=1 $ sysctl vm.overcommit_memory=1 -
nghuuphuoc revised this gist
Dec 23, 2013 . 2 changed files with 0 additions and 34 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +0,0 @@ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,27 +0,0 @@ -
nghuuphuoc revised this gist
Dec 23, 2013 . 2 changed files with 3 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ $ chkconfig --add redis $ chkconfig --level 345 redis on $ service redis start/stop/restart File renamed without changes. -
nghuuphuoc revised this gist
Dec 23, 2013 . 2 changed files with 9 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz $ tar xzvf redis-2.8.3.tar.gz $ cd redis-2.8.3 $ make $ make install This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm $ yum --enablerepo=remi,remi-test install redis -
nghuuphuoc created this gist
Dec 5, 2013 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ $ yum install gcc-c++ $ wget http://www.canonware.com/download/jemalloc/jemalloc-3.3.0.tar.bz2 $ tar xjvf jemalloc-3.3.0.tar.bz2 $ cd jemalloc-3.3.0 $ ./configure $ make $ make install This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ // See http://www.saltwebsites.com/2012/install-redis-245-service-centos-6 $ wget http://redis.googlecode.com/files/redis-2.6.9.tar.gz $ tar xzvf redis-2.6.9.tar.gz $ cd redis-2.6.9 $ make $ make install $ mkdir /etc/redis /var/lib/redis $ cp redis.conf /etc/redis $ sudo nano /etc/redis/redis.conf daemonize yes loglevel notice logfile /var/log/redis.log dir /var/lib/redis $ wget --no-check-certificate https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server $ nano redis-server redis="/usr/local/bin/redis-server" $ mv redis-server /etc/init.d $ chmod 755 /etc/init.d/redis-server $ chkconfig --add redis-server $ chkconfig --level 345 redis-server on $ nano /etc/sysctl.conf vm.overcommit_memory = 1 $ sysctl vm.overcommit_memory=1 // Start Redis $ service redis-server start This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ // Install php-redis extension $ yum --enablerepo=remi,remi-test install php-redis // If it does not work, try the following steps: $ wget https://github.com/nicolasff/phpredis/zipball/master -O phpredis.zip $ unzip phpredis.zip $ cd nicolasff-phpredis-* $ phpize $ ./configure $ make $ make install Installing shared extensions: /usr/lib64/php/modules/