How to do Postgresql 9.2 version check in Linux? $ systemctl restart postgresql-9.2.24

Failed to restart postgresql-9.2.24.service: Unit not found.
That means that there is no file named

postgresql-9.2.24.service


in your systemd directory.

The exact location varies between Linux distributions, but it is usually /usr/lib/systemd/system or /lib/systemd/system.