sysctl.conf生效
I made some changes to /etc/sysctl.conf
. I know it will take effect next time Linux boots. However, how to make the changes to sysctl.conf take effect without rebooting Linux?
我对/etc/ sysctl .conf
进行了一些更改。 我知道它将在下一次Linux启动时生效。 但是,如何使对sysctl.conf的更改在不重新引导Linux的情况下生效?
You can force Linux to reload the new configuration in /etc/sysctl.conf
by: execute the following command as root:
您可以通过以下方式强制Linux重新加载/etc/sysctl.conf
的新配置:以root用户身份执行以下命令:
sysctl -p
For more details, check the manual of sysctl
Answered by anonymous.
匿名回答。
翻译自: https://www.systutorials.com/make-changes-to-sysctl-conf-take-effect-without-rebooting-linux/
sysctl.conf生效