cat <<'EOF' > /etc/security/limits.d/01-origin.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
EOF
cat <<'EOF' > /etc/sysctl.d/01-origin.conf
net.nf_conntrack_max = 65535
net.ipv4.ip_local_port_range = 10000 64999
net.core.netdev_max_backlog = 4096
net.core.somaxconn = 65535
EOF
systemctl stop firewalld.service
systemctl disable firewalld.service
sed -i "s/SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config
setenforce 0
systemctl stop ip6tables.service
systemctl disable ip6tables.service
systemctl stop iptables.service
systemctl disable iptables.service
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme