# 修改system.conf中DefaultLimitNOFILE=655350 cat /etc/systemd/system.conf # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See systemd-system.conf(5) for details.
# 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). vm.dirty_writeback_centisecs=100 vm.dirty_expire_centisecs=100 vm.swappiness=1 net.ipv4.ip_local_port_range=10000 65001 net.ipv4.tcp_max_orphans=4000000 net.ipv4.tcp_timestamps=0 net.core.somaxconn=1024 net.netfilter.nf_conntrack_max=121005752 kernel.core_pattern=/var/coredump/core.%e.%p.%t