How do I a manually make a permanent to kernel parameters in redhat without rebooting?
-
Also see: sysctl(8) - configure kernel parameters at runtime
sysctl.conf(5) - sysctl preload/configuration file-p[FILE], --load[=FILE] Load in sysctl settings from the file specified or /etc/sysctl.conf if none given. Specifying - as filename means reading data from standard input. Using this option will mean arguments to sysctl are files, which are read in the order they are specified. The file argument may be specified as regular expression.
Note comments in
etc/sysctl.conf
before making changes:# sysctl settings are defined through files in # /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/. # # Vendors settings live in /usr/lib/sysctl.d/. # To override a whole file, create a new file with the same in # /etc/sysctl.d/ and put new settings there. To override # only specific settings, add a file with a lexically later # name in /etc/sysctl.d/ and put new settings there. # # For more information, see sysctl.conf(5) and sysctl.d(5).
Edit /etc/sysctl.conf as appropriate then: this one way of doing it.
# sysctl -p
The
/etc/sysctl.d/99-sysctl.conf
is a symbolic link to /etc/sysctl.conf.
© Lightnetics 2024