sudo systemctl enable --now postgresql

Category: Databases & SQL

sudo systemctl enable --now postgresql

Start PostgreSQL now and at every boot

enable --now does two things at once: enable registers the unit to start at boot and start launches it immediately. The postgresql unit starts every configured cluster. Related: sudo systemctl disable --now postgresql stops it and removes it from boot.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.