- # sysctl settings are defined through files in
- # /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
- #
- # Vendors settings live in /usr/lib/sysctl.d/.
- # To override a whole file, create a new file with the same in
- # /etc/sysctl.d/ and put new settings there. To override
- # only specific settings, add a file with a lexically later
- # name in /etc/sysctl.d/ and put new settings there.
- #
- # For more information, see sysctl.conf(5) and sysctl.d(5).
- fs.inotify.max_user_instances = 1024
- fs.inotify.max_user_watches = 81920000
- net.ipv4.ip_forward = 1
- vm.overcommit_memory = 1
- net.core.somaxconn = 1024
复制代码
备份一下你的/etc/sysctl.conf文件,然后把我这个配置替换你的,然后sysctl -p 试试 |