Skip to content

Instantly share code, notes, and snippets.

@behrad
Created August 4, 2013 08:13
Show Gist options
  • Save behrad/6149669 to your computer and use it in GitHub Desktop.
Save behrad/6149669 to your computer and use it in GitHub Desktop.
Install latest Redis & Node in Centos 6
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'
@behrad
Copy link
Author

behrad commented Oct 13, 2013

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment