Blog

Projects

Stacks

Snippets

About

Manage services in linux

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