Created
August 4, 2013 08:13
-
-
Save behrad/6149669 to your computer and use it in GitHub Desktop.
Install latest Redis & Node in Centos 6
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 characters
yum update | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm | |
# to --enablerepo=remi | |
nano /etc/yum.repos.d/remi.repo | |
yum install redis -y | |
chkconfig redis on | |
# From EPEL | |
yum install npm | |
# su -c 'yum install npm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some useful Redis configuration in production:
1)
save 900 10000
save 600 100000
stop-writes-on-bgsave-error no
echo 1 > /proc/sys/vm/overcommit_memory
add 'vm.overcommit_memory = 1' to /etc/sysctl.conf
reboot or run 'sysctl vm.overcommit_memory=1'