![]() ![]() To restart the PostgreSQL server, you can use the following command: sudo systemctl restart postgresql You can stop the PostgreSQL server by running the command below: sudo systemctl stop postgresql To start the PostgreSQL server, you can use the command below: sudo systemctl start postgresql Note: If your PostgreSQL service is not activated on Debian 12, run the command below to enable it: sudo systemctl enable postgresql -now Step 2 – How To Manage PostgreSQL Service?Īs you know, the PostgreSQL database server runs as a service under the name “PostgreSQL,” which can be managed with the systemd with the following command examples. Main PID: 2202 (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled preset: e>Īctive: active ( exited) since Thu 05:20:15 EDT 13s ago To confirm this, run the following command: sudo systemctl status postgresql Step 1 – Installing PostgreSQL 15 on Debian 12įirst, you must run the system update by using the following command: sudo apt updateĪs Debian 12 ships with the current stable version of PostgreSQL, you can easily run the command below to install it on your server: sudo apt -y install postgresqlīy default, PostgreSQL will be activated during the installation. Now follow the steps below to complete your PostgreSQL installation on Debian 12. To do this, you can follow this guide on Initial Server Setup with Debian 12 Bookworm. To complete this guide, you must have access to your server as a non-root user with sudo privileges. How To Install PostgreSQL on Debian 12 Bookworm? The default version of PostgreSQL that is available in the default Debian 12 repository is PostgreSQL 15 which is the current stable version. What is the Default PostgreSQL Version on Debian 12?ĭebian 12 Bookworm ships with the new packages and software. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |