I want, when my centos 7 server boots, to run
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
because I want to reuse open connections.
Systemd is allready installed, but my command is not a service, just a one time execution command at startup.
How can I run automatically this command at startup ? Thanks !
2
Answers
Add your command to
and it will run at startup.
The correct way to make the changes persistent is to edit the file:
After the change, type:
This will load the changes into the current session. The fact that the settings are in /etc/sysctl.conf will ensure that they load on reboots.