GoAdmio Command Line: postgresql with /go/postgresql

/go/postgresql installs the PostgreSQL database server and starts it. The service is also enabled, so it starts again after a reboot. It installs the version that your operating system provides. It doesn't create databases or users. To do that, use postgre after the installation. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/postgresql

Options

None.

Examples

# Install and start PostgreSQL
/go/postgresql

# Check that it is running and which version was installed
systemctl status postgresql
sudo -u postgres psql -c "select version();"

# Create a database and a user
/go/postgre

Output

The command prints Installing PostgreSQL... and then the output of dnf or apt. It doesn’t print a message when it finishes, and it doesn’t check whether each step worked.

On an operating system that isn’t listed in Details, it does nothing more.

Every run is logged to /var/log/go/postgresql.log with a timestamp and the arguments used.

See the full reference at /go/postgresql and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *