Troubles with creating initial PostgreSQL base
As the root user, edit /etc/sysctl.conf and add the following lines:

kernel.shmmax=2147483648
kernel.shmall=2097152


Then run:

sysctl -p


.. to reload the kernel settings.

That'll set the maximum shared memory segment size to 2Gb &amp; should solve your issue.