![]() ![]() sudo systemctl status rvice Create database and user If happen some problem, you can to check what went wrong running the command below. ![]() sudo systemctl enable rvice & \ sudo systemctl start rvice sudo sed 's/host.*all.*all.*127.0.0.1.*ident/host all all all md5/' \ -i /var/lib/pgsql/10/data/pg_hba.conf InitializationĪfter the installation step, we’ll to configure auto-start on CentOS boot and start PostgreSQL. sudo sed -e "/listen_addresses = ' \* '/d" \ -e "/#listen_addresses = 'localhost'/a listen_addresses = ' \* '" \ -i /var/lib/pgsql/10/data/nfĪnd now we’ll allow the remote access for all user, databases and IP addresses. ![]() ![]() sudo /usr/pgsql-10/bin/postgresql-10-setup initdb Access configurationsįirstly we’ll allow access for remote clients. Now is necessary to run the setup to create the necessary files. sudo yum install -y & \ sudo yum install -y postgresql10 postgresql10-server Taken due precautions we can advance with the installation, notice that we’re using official PostgreSQL packages. sudo sed -e '/exclude=postgresql\*/d' \ -e '/^\$\|^\$/a exclude=postgresql\*' \ -i /etc//CentOS-Base.repo Installationīefore install we’ll need to do CentOS ignore the PostgreSQL of your repositories, for do it execute the text below in CentOS terminal. The goal this tutorial is to install and to configure a instance of PostgreSQL to be used on development environment, many configurations necessary to production environment are ignored. At this article we’ll see how to install PostgreSQL 10 on CentOS 7, if you’re hurry or not have interest about installation details go to the end of this article and use the script that contains all necessary commands, so let’s beginning. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |