How to restart server without rebooting system
On CentOS server, you can use these below commands:

PostgreSQL 9.6:

/bin/systemctl restart postgresql-9.6.service


PostgreSQL 10.x

/bin/systemctl restart postgresql-10.service


PostgreSQL 11.x

/bin/systemctl restart postgresql-11.service