Skip to content

Instantly share code, notes, and snippets.

@yzf
Last active July 6, 2016 02:14
Show Gist options
  • Save yzf/b2d758404639f60fc3c1cba29718b4b2 to your computer and use it in GitHub Desktop.
Save yzf/b2d758404639f60fc3c1cba29718b4b2 to your computer and use it in GitHub Desktop.
解决redis安装后的几个warning
#!/bin/bash
# Or add `vm.overcommit_memory=1` in `/etc/sysctl.conf` and call `sudo sysctl -p`
sudo sysctl vm.overcommit_memory=1
# Or add `echo never > /sys/kernel/mm/transparent_hugepage/enabled` in `/etc/rc.local`
sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment