Last active
July 6, 2016 02:14
-
-
Save yzf/b2d758404639f60fc3c1cba29718b4b2 to your computer and use it in GitHub Desktop.
解决redis安装后的几个warning
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
#!/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