Seriously, the Postgres install docs cover everything or if you are installing RPMs they should set everything up properly.
There is no shorter way than reading the fine manual 😊
./patrick