So, PostgreSQL is installed correctly and is working. For example, list the databases: \l 2.- Testing PostgreSQL The console is called psql but it is only available to the postgres user that was created during the installation. Now let’s connect to PostgreSQL Test the PostgreSQL installation If you want to stop, restart or start the service you can use these commands sudo systemctl stop postgresql Main PID: 11736 (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (exited) since Wed 22:27:21 CEST 4min 40s ago So, you can check the status of this service like this sudo systemctl status postgresql In Debian when installing an application that is managed through a systemd service, it will start automatically. This will install the PostgreSQL base package which will be enough to do a job with it. Libllvm11 libpq5 libxslt1.1 libz3-4 postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common ssl-certĠ upgraded, 9 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 165 MB of additional disk space will be used.ĭo you want to continue? 1.- PostgreSQL installed on Debian 11 The following NEW packages will be installed: Libllvm11 libpq5 libxslt1.1 libz3-4 postgresql-client-13 postgresql-client-common postgresql-common ssl-cert The following additional packages will be installed: Use 'sudo apt autoremove' to remove them. The following packages were automatically installed and are no longer required: To install PostgreSQL on Debian 11, you have to run the following command sudo apt install postgresql-13 If you want to do a search in the repositories run sudo apt updateĪnd this way we will be able to see all these packages. In addition to the base PostgreSQL package there are also others that we can use at other times. So it is not surprising that PostgreSQL is also present. Install PostgreSQL on Debian 11ĭebian, which is a multipurpose operating system, has many different tools in its official repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |