I've downloaded the PostgreSQL installer from you website for the Linux. I'm running Linux CENTOS 7.5 when try to execute the installer I get the following messages below:
[louis@Lenovo-P50 PostgreSQL-10.5.2]$ ./postgresql-10.5-2-linux-x64.run
bash: ./postgresql-10.5-2-linux-x64.run: Permission denied
[louis@Lenovo-P50 PostgreSQL-10.5.2]$ sudo ./postgresql-10.5-2-linux-x64.run
[sudo] password for louis:
sudo: ./postgresql-10.5-2-linux-x64.run: command not found
[louis@Lenovo-P50 PostgreSQL-10.5.2]$ sh ./postgresql-10.5-2-linux-x64.run
./postgresql-10.5-2-linux-x64.run: ./postgresql-10.5-2-linux-x64.run: cannot execute binary file
[louis@Lenovo-P50 PostgreSQL-10.5.2]$ sh postgresql-10.5-2-linux-x64.run
postgresql-10.5-2-linux-x64.run: postgresql-10.5-2-linux-x64.run: cannot execute binary file
I've ha no luck getting it to execute, so what could or I'm doing wrong. I'm new to Linux and PostgreSQL, trying to move from Microsoft i just can't afford it any more.
I have tried to reproduce your issue in my local environment and it seems that you have permission issue on the installer file.
Kindly use below command to set the proper permission.
chmod +x postgresql-10.5-2-linux-x64.run
Hope this helps.
Whenever you try to install any version of postgres, as a mandatory first you need to provide the execute permission then only it allows you to execute the downloaded postgres binary binary file.
Postgres installation should be run through root user.
In the event that you introduce the packaged PostgreSQL, the installer puts PostgreSQL 9 onto your system. The default PostgreSQL port is 5432. On the off chance that port 5432 is being used, the installer will prompt you to pick an alternate Assignment Writer port. The installer sets the PostgreSQL overseer password to postgres and makes a PostgreSQL database client with director benefits and the credentials jasperdb/password.