postgres on linux red hat 7 configuration problem

Record a few key things, the specific steps are not listed, there are many online,

1. Redhat subscripiton needs to be subscribed. If you don’t have money, you need to change the yum source. It’s also very simple. Just delete the yum that comes with it and reinstall the others. You can use Baidu. yum update replace

2. Create a user postgres, you need to use this user to start the database

3. Start the postgresql service, manual method: Enter /var/local/psgres/bin, execute the command ./postmaster -i -D /var/local/pgsql/data

4. Enter psql, enter the command window, create a user and password

5. Turn off the firewall and connect remotely

6. Remember your own settings, IP port, after I created it, it was useless for a few days, so I forgot it. .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325207179&siteId=291194637