If there's a /etc/sysctl.d directory, follow these steps to activate:
- Create a file named 30-postgresql.conf in the /etc/sysctl.d directory with the settings we mentioned earlier.
- Execute this command as a root-capable user to activate:
sudo sysctl -p /etc/sysctl.d/30-postgresql.conf
Otherwise, follow these steps:
- Place the settings in /etc/sysctl.conf.
- Execute this command as a root-capable user to activate:
sudo sysctl -p