Above commands let the system remember new settings until the next system restart. If you want to make the change permanent you have to edit file: /etc/sysctl.conf and add the property at the end of the file:

net.ipv4.ip_local_port_range=1024 65000net.ipv4.tcp_keepalive_time=60

It will be automatically loaded next time you start the server. Command:

# sysctl -p

Causes the /etc/systcl.conf to be reloaded which is useful when you added more parameters to the file and don’t want to restart the server.