$ sudo -i
# vim /etc/systemd/system/somaxconn1024.service
# systemctl enable somaxconn1024
# systemctl start somaxconn1024
# systemctl status somaxconn1024
# cat /proc/sys/net/core/somaxconn
-
-
Save PyYoshi/55c6953b7e8267d81daf to your computer and use it in GitHub Desktop.
Set somaxconn=1024 on CoreOS
This file contains hidden or 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
[Unit] | |
Description=Set somaxconn=1024 | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/sh -c "/usr/bin/echo 1024 > /proc/sys/net/core/somaxconn" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment