Pg_ctl Utility & Postgresql Service to do the same thing: Start the postgres server in the background. Without PGDATA set, “pg_ctl start” needs needs the additional -D /datadir argument in order to start. you can start/stop the postgresql server as root user as well as postgres user root user: “ service postgresql start “ “ /etc/init.d/postgresql start “, or “ systemctl start postgresql-10 ” – this is for redhat linux above version 6 postgres or edb user: Pg_ctl is only applicable for postgres user or edb user if you are a Enterprisedb su – postgres ./ pg_ctl start -D /opt/PostgreSQL/9.3/data By using following anyone methods you can start,stop,reload else restart the postgresql server By using Pg_ctl Utility Postgresl -9.3 Script By using Postgresql Service 1. pg_ctl utility – as postgres user: using pg_ctl you can start/stop/reload/restart the postgresql server this utility can only permitted to access as postgres user ./pg_ctl stop -D /opt/Postg
Comments
Post a comment