Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How to have postgresql restart under centOS 7?

Asked by Andrea Bailey Oct 6, 2022 1.6K views 1 answer
Share

About this question

 I installed PostgreSQL 10.1 under a CentOS 7.3 environment.

The service has started (postmaster.pid file present under /var/lib/pgsql/10/data), but I need to reload configuration or restart the server following a change in pg_hba.conf.

However, trying different commands, I get the following:

pg_ctl reload -D /var/lib/pgsql/10/data

bash: pg_ctl: command not found


service postgresql reload

Redirecting to /bin/systemctl reload postgresql.service

Failed to reload postgresql.service: Unit not found.

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.