0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

centos7 kernel tuningでとりあえず流す memo

Last updated at Posted at 2018-02-27
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

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?