Use systemctl command to manage postgresql service:
-
stop service:
systemctl stop postgresql -
start service:
systemctl start postgresql -
show status of service:
systemctl status postgresql -
disable service(not auto-start any more)
systemctl disable postgresql -
enable service postgresql(auto-start)
systemctl enable postgresql