postgresql-12.2.service does not exist



  • After a Centos server restart, unable to restart postgres??

    I am getting a Postgres error: Unit postgresql.service not found I have tried every solution on Google, nothing works?? I would appreciate any pointers.

    Thanks Clive

    $ sudo find / -name initdb /local/bin/initdb /home/postgresql-12.2/src/bin/initdb /home/postgresql-12.2/src/bin/initdb/initdb

    When I try sudo systemctl start, get an error.

    sudo systemctl start /homepostgresql-12.2
    

    Failed to start home-postgresql\x2d12.2.mount: Unit home-postgresql\x2d12.2.mount not found.

    sudo systemctl start /home/postgresql-12.2.service

    Failed to start home-postgresql\x2d12.2.service.mount: Unit home-postgresql\x2d12.2.service.mount not found.

    sudo systemctl enable postgresql-12.2 Failed to enable unit: Unit file postgresql-12.2.service does not exist.



  • This worked today.

    sudo systemctl restart httpd
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2