Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghcp3-0001Qh-5p for pgsql-admin@arkaria.postgresql.org; Thu, 10 Jan 2019 16:04:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghcp1-0003HQ-PS for pgsql-admin@arkaria.postgresql.org; Thu, 10 Jan 2019 16:04:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghcp0-0003HE-Qt for pgsql-admin@lists.postgresql.org; Thu, 10 Jan 2019 16:04:43 +0000 Received: from sonic306-3.consmr.mail.bf2.yahoo.com ([74.6.132.42]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghcov-0002Pk-Dz for pgsql-admin@lists.postgresql.org; Thu, 10 Jan 2019 16:04:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1547136275; bh=Ti2f//GFecAgbhV6THSG5V1OLDppo0Yx6g5fM3SNUKs=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=Sy6/tB5CD2xRl1lOjVnJ6iRONtrlaZRjtDmbnKhxIxSoTGwv5TFDKYHCG9dMO4/ffNA+en4Bc/gwAuYyKIXjlmZZQGBMSYInYMelebvIUYPfm9tAxuPWj4Ae9FdGEXuiU8rizy7WSvU+7rBg6tbM+Gmf5xyPTwfB8PlCrRslUGTe/aiVxSp9yDzL5u4I+6Pj+XM1kDDZu3NKMjl+KiRcO0uqM0iykWcHCdhfd5p27rNVZOdzejoFQci8EmFJ4vICJHTqHwBWNTLPBdF9zFYzV06GNG3TDzG4em+snB8RCxcNr3uWoZ+VJ0ZhO8AMw4Jnl3fiqAH02Zq8uSXIJ8A/Dw== X-YMail-OSG: n8ogCPsVM1mX6KEVJDgrjayDMOlQHPhK..sBBk5tbK7TZrqrGc0QVYnlZmCOwaM J3km2BPQC7pWbScnYCqaP1w4XrrMFwmfB4m2.YS_WTxi_adPf_6y36v3DV2QotFRZXrTNJgE3Rry mLdlHZJWmNJhzJH.T.SoNjGlYHDbYkhKjVjl7POk9rMImoyaHMRvSImBkDrSXtj.QTc.6zKpj4T7 Sexdoq50QsvCnsFmf5AAhkSEig6HoftdloaUwp08orYDy7R47RNwYkx26wEwmF8DQ7jSQWX_RfCc 2Rh96wptPaeSGETnbg82VZ2bbwK43UGc2tBkRd6U_6LkhW_18L91K4SZY7TOLukG8_ivH7uXaAac 8Vr58QT5cSmDZ_gr15QUxG9u_AucG.emJlC8V0S3kwBirzomoBZPDqu9o63Fwu8gP5PdjB2dSSL_ JxFa3lEL4LxCvF_x8tB2No0yZzA8Ef278RHb8IUDOhkQ6HHm4GdM36H_cTxwdJYlj9xuwJ.SYgdm VNXPgLB_d90Ne1QwSt5h7esD4H6zyRgiWtugHH1Qm26_4MO_r1mnNmXMA11j6KLmRpVvhnlZAkFa jE7Q4DlNAUPaUsEWXEydQzOToZ7GCP6Aio85mJ7IM74hLpyxvcSaHcKUrqvTy2ncIHi4GU0vMNvX 20J1PYyqjQ3PX9wwX6MtPIQO_Pqu1ych5y7LhhOHo7jwl7iQV_VcCad1fF7IXlQeOmCZhjFmDKyY Zh9qZQ3Uh_LdhRZyPoCGVHusgYYGywNqnB9SBDkueNrYFI6OhG9ucjfWQ1lS12lbCI76d5x093t9 HaUHB9DTlMxjkpe8B21BYPteU1K9U_EeP6_zoM5m9Vb_pYPwui6WkZywVidk5Re2SYWQ5c3otLoz DLK68ThKgj0FOn2iNpkWxmrLLXEiptZQQucQiZfgTGaG1akt3WCJKd5kMi9oipS4HAj..USXEWNi YVhYBJFY2lAoZqg9y5axkHHWKUNzNS2She0ZEqk6XxE9VSea6rmPnOpl8hI7ySEtZUe9sWbrwqv_ 67UjUf66Tzr_01SAO37nrrqcf6Kci9ZtM9YUFjlZxFKEDXiPKMAf_L.6JYgAetkWHR1k- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Thu, 10 Jan 2019 16:04:35 +0000 Date: Thu, 10 Jan 2019 16:04:31 +0000 (UTC) From: Pepe TD Vo Reply-To: Pepe TD Vo To: Shreeyansh Dba Cc: Kris Deugau , "pgsql-admin@lists.postgresql.org" Message-ID: <1776910635.16316271.1547136271945@mail.yahoo.com> In-Reply-To: References: <1631501735.1420767.1545138861194.ref@mail.yahoo.com> <1631501735.1420767.1545138861194@mail.yahoo.com> <413070647.1500395.1545146432141@mail.yahoo.com> <655950091.6682015.1545227950414@mail.yahoo.com> <1647331387.6706670.1545231013241@mail.yahoo.com> <1026281491.6868813.1545244876819@mail.yahoo.com> <16116df4-3ae8-688b-5794-440e47d61ba1@vianet.ca> <404624400.7401294.1545328383827@mail.yahoo.com> <1417769599.15062732.1546970845229@mail.yahoo.com> <663674680.15076651.1546972379997@mail.yahoo.com> Subject: Re: install Postgres on RHED 7 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16316270_350200314.1547136271937" X-Mailer: WebService/1.1.12857 YahooMailNeo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Content-Length: 56695 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_16316270_350200314.1547136271937 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable sorry I was out yesterday. I stop the services and kill -9 all the postgresql process and run ps aux|g= rep postgres.=C2=A0 Nothing is running and start the service as 'service po= sgresql start" I still get eh error=C2=A0'Job for postgresql.service failed= because the control process existed with error code.=C2=A0 See "systemctl = status posgresql.service" and "journalctl -xe" for details As the systemctl status posgresql.service I get Loaded:loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor= preset: disabled) Active: failed (Result: exit-code) since Thu 2019-091-10 09:18:24 EST; 34s = ago Active: failed (Result: exit-code) since Thu 2019-091-1009:18:24 EST; 34s a= go Process: 20639 ExecStart=3D//usr/bin/pg_ctl start =E2=80=93D ${PGDATA} =E2= =80=93s=E2=80=93o =E2=80=93p ${PGPORT} =E2=80=93w =E2=80=93t 300 (code=3Dex= isted, status=3D1/FAILURE) Jan 10 09:18:23 hostname systemd[1]: Starting PosgreSQL databaseserver=E2= =80=A6 Jan 10 09:18:23 hostname [pg_ctl[20639]: FATAL: could not remove old lock f= ile =E2=80=9C/t=E2=80=A6ed Jan 10 09:18:23 hostname [pg_ctl[20639]: HINT: the file seemsaccidentally l= ef ov =E2=80=A6n. Jan 10 09:18:24 hostname [pg_ctl[20639]: pg_ctl: could not startserver Jan 10 09:18:24 hostname systemd[1]:postgresql.service: controlprocess exis= ted, c=E2=80=A6=3D1 Jan 10 09:18:24 hostname systemd[1]:Failed to start PostgreSQLdatabase serv= er. Jan 10 09:18:24 hostname systemd[1]:Unit postgresql.serviceentered failed s= tate. Jan 10 09:18:24 hostname systemd[1]:postgresql.service failed Hint: some lines were ellipsized, use =E2=80=93l to show in full. =C2=A0From journal-xe, I see: --Unit session -10325.scope has finishedstarting up. --The start-up result is done Jan 10 09:20:01 hostname systemd[1]: Startingsession 10325 of user root --Unit session-10325.scope has begun starting up Jan 10 09:20:01 hostname systemd[1]: Removed sliceUser Slice of root --Unit user-0.slice has finished shutting down. Jan 10 09:20:01 hostname systemd[1]: StoppingUser Slice of root --Unit user-0.slice has begun shutting down. =C2=A0 When I grep postgres from systemctl, it loaded failedfailed #systemctl list-units|grep posgresql a postgresql-11.service loaded failed failed PostgreSQL 11 database server #pg_ctl start pg_ctl: cannot be run as root Please log in (using, e.g., =E2=80=9Csu) as the(unprivileged) user that wil= l own the server process. # su postgres [postgres@hostname]$ pg_ctl start Pg_ctl: no database directory specified andenvironment variable PGDATA unse= t Try =E2=80=9Cpg_ctl =E2=80=93help=E2=80=9D for more information. I am new to Postgresql and any information provide will be appreciated. thank you. v/r, =C2=A0Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir mistakes you will be alone. So judge less, love and forgive more.To call= him a dog hardly seems to do him justice though in as much as he had four = legs, a tail, and barked, I admit he was, to all outward appearances. But t= o those who knew him well, he was a perfect gentleman (Hermione Gingold) **Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely = rich *** Faithful talent *** Sharing success=20 On Wednesday, January 9, 2019 2:16 AM, Shreeyansh Dba wrote: =20 Try to specify the exact name for the PostgreSQL service, which you can fi= nd under the list of services, using systemctl. systemctl list-units|grep postgresql Then you can use the service or systemctl command.OrBetter to use pg_ctl to= start/stop PostgreSQL server. Thanks & Regards, Shreeyansh DBA Team www.shreeyansh.com On Wed, Jan 9, 2019 at 12:03 AM Pepe TD Vo wrote: sorry, my fingers split before I can finish all typing: =20 finally the SA installed the OS libraries and I installed the server packa= ges successful but not postgres11-contrib.#yum install postgresql11-server = postgresql11-contrib=C2=A0 --> I see no package postgresql11-contrib availa= beDependencies resolvedTransaction test succeededrunning transaction=C2=A0i= nstalling: libicu-50.1.2.17.el7.x86_64=C2=A0 =C2=A01/2Installing: postgresq= l11-11.1-1PGDG.rhel7.x86_64=C2=A0 =C2=A02/3failed to link /usr/bin/psql -> = /etc/alternative/pgsql-psql: /usr/bin/pgql exists and it's not a a symlinkf= ailed to link /usr/bin/clusterdb -> /etc/alternatives/pgsql-clusterdb: /usr= /bin/clusterdb exist and itis not a symlink failed to link /usr/bin/createdb -> /etc/alternatives/pgsql-createdb: /usr/= bin/createdb=C2=A0exist and it is not a symlinkfailed to link /usr/bin/crea= teuser -> /etc/alternatives/pgsql-createuser: /usr/bin/createuse=C2=A0exist= and it is not a symlink failed to link /usr/bin/dropdb -> /etc/alternatives/pgsql-dropdb: /usr/bin/= dropdb exist and it is not a symlinkfailed to link /usr/bin/dropuser -> /et= c/alternatives/pgsql-dropuser: /usr/bin/dropuser exist and it is not a syml= inkfailed to link /usr/bin/pg_basebackup -> /etc/alternatives/pgsql-pg_base= backup: /usr/bin/pg_basebackup exist and itis not a symlinkfailed to link /= usr/bin/pg_dump -> /etc/alternatives/pgsql-pg_dump: /usr/bin/pg_dump exist = and it is not a symlinkfailed to link /usr/bin/pg_dumpall -> /etc/alternati= ves/pgsql-pg_dumpall: /usr/bin/pg_dumpall exist and it is not a symlinkfail= ed to link /usr/bin/pg_restore -> /etc/alternatives/pgsql-pg_restore: /usr/= bin/pg_restore exist and it is not a symlink failed to link /usr/bin/reindexdbl -> /etc/alternatives/pgsq-reindexdb: /us= r/bin/reindexdb exist and it is not a symlink failed to link /usr/bin/vacuumdb -> /etc/alternatives/pgsql-vacuumdb: /usr/= bin/vacuumdbexist and it is not a symlink installing:=C2=A0=C2=A0postgresql11-server-11.1-1PGDB.rhel7.x86_64=C2=A0=C2= =A0 1/3 Verifying:=C2=A0 postgresql11-11.1-1PGDB.rhel7.x86_64=C2=A0 =C2=A01/3Verify= ing: libicu-50.1.2-17.el7.x86_64=C2=A0 =C2=A02/3Verirying:=C2=A0 postgresql= 11-server-11.1-1PGDB.rhel7.x86_64=C2=A0 =C2=A03/3 Installed:postgresql11-server.x86_64 0:11.1-1PGDG.rhel7Dependency Installed= :libicu.x86_64 0:50.1.2-17.el7=C2=A0 =C2=A0postgres11.x86_64 0:11.1-1PGDG.r= hel 7 Completed! After the server successful install, I initialize the database an # /usr/pgsql-11/bin/postgresql-11-setup initdbInitializing database .....OK # systemctl enable postgres-11created symlink from /etc/systemd/system/mult= i-user.target.wants/postgresql-11.service to /usr/lib/systemd/system/postge= resql-11.service. # systemctl start postgresql-11# systemctl status postgresql-11postgresql-1= 1.service - PostgreSQL 11 database serverLoaded:loaded (/usr/lib/systemd/sy= stem/postgresql-11.service; enabled; vendor preset: disabled)Active: active= (running) since Tues 2019-01-08 12:02:05 EST; 12s agoand so on .... # service postgresql initdbhint: the perferred way to do this is now "postg= resql-set initdb"Initializing database ... OK but when I tried to correct the postgres.conf with the listen_addresses =3D= '*' and port=3D5432.=C2=A0 Restart the postgresql server I get an error. redirecting to /bin/systemctl start postgresql.service job for postgresql.service failed because the control proces exited with er= ror code.=C2=A0 See "systemctl status postgresql.service" and "jouralctl -x= e" for details. I run:=C2=A0#systemctl status postgresql.service -lpostgresql.service - Pos= tgreSQL database serverLoaded:loaded (/usr/lib/systemd/system/postgresql.se= rvice; diabled; vendor preset: disabled)Active: failed (result: exit-code) = since Tues 2019-01-08 12:34:43 EST; 2min 22s agoProcess: 6896 ExecStart=3D/= usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=3Dexis= ted, status=3D1/FAILUREProcess: 688 ExecStartPre=3D/usr/bin/postgresql-chec= k-db-dir ${PGDATA} (code=3Dexisted, status=3D0/SUCCESS)=C2=A0=C2=A0Jan 08 1= 2:34:42 hostname pg_ctl[6896]:HINT: Is another postmaster alreadying runnin= ...yJan 08 12:34:42 hostname pg_ctl[6896]:LOG: could not bing IPV6 socket:= Addressa ...seJan 08 12:34:42 hostname pg_ctl[6896]:HINT: Is another postm= aster alreadying runnin ...yJan 08 12:34:42 hostname pg_ctl[6896]:WARNING: = could not create any TCP/IP socketsJan 08 12:34:43 hostname pg_ctl[6896]:pg= _ctl: could nto start serverJan 08 12:34:43 hostname pg_ctl[1]: postgresql.= service: control process existed, c...=3D1 Jan 08 12:34:43 hostname pg_ctl[1]: Failed to start PostgreSQL database ser= ver. Jan 08 12:34:43 hostname pg_ctl[1]: Unit postgresql.service entered failed = state. Jan 08 12:34:43 hostname pg_ctl[1]: postgresql.service failed Hint: Some lines were ellipsized, use -l to show in full what I did wrong here?=C2=A0 Do I need to add listen_addresses =3D '*' and = port =3D 5432 on both /var/lib/pgsql/data/postgres.conf and /var/lib/pgsql/= 11/data/postgres.conf ? thank you for all your help. v/r, Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir mistakes you will be alone. So judge less, love and forgive more.To call= him a dog hardly seems to do him justice though in as much as he had four = legs, a tail, and barked, I admit he was, to all outward appearances. But t= o those who knew him well, he was a perfect gentleman (Hermione Gingold) **Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely = rich *** Faithful talent *** Sharing success=20 On Thursday, December 20, 2018 4:17 PM, Kris Deugau = wrote: =20 Pepe TD Vo wrote: > May you suggest me exactly repositories packages needed for install=20 > PostgreSQL?=C2=A0 Seem to me this link,=20 > https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/ = =20 > all rpm files needed another dependencies.=C2=A0 Total more than 300 file= s=20 > and only a few allow me to install the rest of them needed another=20 > dependencies and didn't give me exactly what they are. Some of them will be from the stock Red Hat repositories, and some will=20 be from the PGDG repository.=C2=A0 I haven't used that repository, and I=20 haven't done much on an RPM-based system for a while so I can't give you=20 any more specific information. It's possible - but very tedious and difficult - to install a package=20 with a large dependency tree entirely by hand.=C2=A0 I *have* done this=20 myself in the past, and I recall a few cases where it literally took two=20 or three hours to get everything installed to support the specific=20 package I started out trying to install.=C2=A0 This is why tools like yum= =20 were developed;=C2=A0 they do the work of checking through the list to see= =20 what's required, and where it can be installed from. This isn't specific to Postgres;=C2=A0 it's how the underlying OS package= =20 system works.=C2=A0 You may want to see if someone in your office has more= =20 experience installing packages on RHEL with yum and ask them to give you=20 a hand.=C2=A0 You've got several issues around yum's basic operation that y= ou=20 need to fix, and local network/systems admins should know enough about=20 your setup to help a lot faster. -kgd =20 =20 =20 ------=_Part_16316270_350200314.1547136271937 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
sorry I was out yesterday.

I stop the services and kill -9 all the po= stgresql process and run ps aux|grep postgres.  Nothing is running and= start the service as 'service posgresql start" I still get eh error <= /span>
<= span id=3D"yui_3_16_0_ym19_1_1547132337597_12232">'Job for postgresql.servi= ce failed because the control process existed with error code.  See "s= ystemctl status posgresql.service" and "journalctl -xe" for details<= /div>

As the syste= mctl status posgresql.service I get

Loaded:loaded (/usr/lib/systemd/system/postgresql.serv= ice; disabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Thu 2019-= 091-10 09:18:24 EST; 34s ago

Active: failed (Result: exit-code) since Thu 2019-091-10 09:18:24 EST; 34s ago
Process: 20639 Exe= cStart=3D//usr/bin/pg_ctl start =E2=80=93D ${PGDATA} =E2=80=93s =E2=80=93o =E2=80=93p ${PGPORT} =E2=80=93w =E2=80=93t 300 (code=3Dexisted, = status=3D1/FAILURE)=
Jan 10 09:18:23 hostname systemd[1]: Starting PosgreSQL = database server=E2=80=A6
Jan 10 09:18:23 hostname [pg_ctl[20639]: FATAL: could not remove old lock file =E2=80= =9C/t=E2=80=A6ed
Jan 10 09:18:23 hostname [pg_ctl[20639]: HINT: the file= seems accidentally lef ov =E2=80=A6n.
Jan 10 09:18:24 hostname [pg_ctl[20639]: pg_= ctl: could not start server
=
Jan 10 09:18:24 hostname systemd[1]:postgresql.service: control process existed, c=E2=80=A6=3D1
Jan 10 09:18:24 hostname systemd[1]:Failed t= o start PostgreSQL database server.
Jan 10 09:18:24 hostname systemd[1]:Unit postgresql.service entered failed state.
Jan 10 09:18:24 hostname systemd[1]:postgresql.service= failed
Hint: some lines were ellipsized, use =E2=80=93l to show in full.
&nb= sp;
From journal-xe, I see:
--Unit session -10325.scope has finished starting up.=
--The start-up result is done
Jan 10 09:20:01 hostname systemd[1]: Starting session 10325 of user root
--Unit session-10325.sco= pe has begun starting up<= /o:p>
Jan 10 09:20:01 hostname s= ystemd[1]: Removed slice User Slice of root<= /span>
--Unit user-0.slice has finish= ed shutting down.
Jan 10 09:20:01 hostname systemd= [1]: Stopping User Slice of root<= /span>
--Unit user-0.slice has begun = shutting down.
 
When = I grep postgres from systemctl, it loaded failed failed
=
#systemctl list-units|grep posgresql
a postgresql-11.service loaded failed failed
PostgreSQL 11 database server
#pg_ctl s= tart
pg_ctl: cannot be run as root
Please log in (using, e.g., =E2=80=9Csu) as the (unprivileged) user that will own the server process.
# su postgres
[postgres@hostname]$ pg_ctl star= t
Pg_ctl: no database directory specified and environment variable PGDATA unset
Try =E2=80=9Cpg_ctl =E2=80= =93help=E2=80=9D for more information.


I am new to Postgresql and any infor= mation provide will be appreciated.

thank you.

v/r,

 
Bach-N= ga

No one in this world is pure an= d perfect.  If you avoid people for their mistakes you will be alone. = So judge less, love and forgive more.
To call him = a dog hardly seems to do him justice though in as much as he had four legs,= a tail, and barked, I admit he was, to all outward appearances. But to tho= se who knew him well, he was a perfect gentleman (Hermione Gingold)<= /span>

**Live simply **Love generou= sly **Care deeply **Speak kindly.
*** Genuinely rich *** Fai= thful talent *** Sharing success


<= font size=3D"2" face=3D"Arial"> On Wednesday, January 9, 2019 2:16 AM, Shre= eyansh Dba <shreeyansh2014@gmail.com> wrote:

Try to specify the exact name for the Po= stgreSQL service, which you can find under the list of services, using syst= emctl.

systemctl list-units|grep pos= tgresql

<= /div>
Then you can use the service= or systemctl command.
Or
Better to use pg_ctl to start/= stop PostgreSQL server.

Thanks & Regards,
Shreeyansh DBA Team
= www.shreeyansh.com


On Wed, Jan 9, 2019 at 12:03 AM Pepe TD Vo <pepevo@yahoo.com> wrote:
sorry, my fingers split before I can finish all typing:=
=



finally the SA installed the OS libraries and I i= nstalled the server packages successful but not postgres11-contrib.<= /div>
#yum install postgresql11-server postgresql11-contrib  --> I see n= o package postgresql11-contrib availabe
Dependencies resolved
Transaction test succeeded
running transaction 
installing: libicu-50.1.2.17.el7.x86_64   1/2
Installing: postgresql11-11.1-1PGDG.rhel7.= x86_64   2/3
failed= to link /usr/bin/psql -> /etc/alternative/pgsql-psql: /usr/bin/pgql exi= sts and it's not a a symlink
= failed to link /usr/bin/clusterdb -> /etc/alternatives/pgsql-clusterdb: = /usr/bin/clusterdb exist and itis not a symlink

failed to link /usr/bin/createdb -> /etc/alternatives/pgsql-cr= eatedb: /usr/bin/createdb exist and it is not a symlink
failed to link /usr/bin/createuser -> /= etc/alternatives/pgsql-createuser: /usr/bin/createuse exist and it is = not a symlink
failed to link /= usr/bin/dropdb -> /etc/alternatives/pgsql-dropdb: /usr/bin/dropdb exist = and it is not a symlink
failed to link /usr/bin/dropuser -> /etc/alternatives/pgsql-dro= puser: /usr/bin/dropuser exist and it is not a symlink
failed to link /usr/bin/pg_baseback= up -> /etc/alternatives/pgsql-pg_basebackup: /usr/bin/pg_basebackup exis= t and itis not a symlink
failed to link /usr/bin/pg_dump -> /etc/alternatives/pgsql-pg_= dump: /usr/bin/pg_dump exist and it is not a symlink
failed to link /usr/bin/pg_dumpall -&= gt; /etc/alternatives/pgsql-pg_dumpall: /usr/bin/pg_dumpall exist and it is= not a symlink
failed to link /usr/bin/pg_restore -> = /etc/alternatives/pgsql-pg_restore: /usr/bin/pg_restore exist and it is not= a symlink
failed to link /usr/bin/reindexdbl -> /etc/alternatives/pgsq-reindexdb:= /usr/bin/reindexdb exist and it is not a symlink
failed to l= ink /usr/bin/vacuumdb -> /etc/alternatives/pgsql-vacuumdb: /usr/bin/vacu= umdbexist and it is not a symlink

installing:  postgresql11-server-11.1-1PGDB.rhel7.= x86_64   1/3

Verifying: = ; postgresql11-11.1-1PGDB.rhel7.x86_64   1/3
Verifying: libicu-50.1.2-17.el7.x86_64  &nbs= p;2/3
Verirying:  postgr= esql11-server-11.1-1PGDB.rhel7.x86_64   3/3

<= /div>
Installed:=
postgresql11-server.x8= 6_64 0:11.1-1PGDG.rhel7
libicu.x86_64 0:50.1.2-17.el7   postgres11.x86_64 0:11.1-= 1PGDG.rhel 7

Completed!

After the server successful install, I initialize t= he database an

# /usr/pgsql-11/bin/pos= tgresql-11-setup initdb
Initi= alizing database .....OK

# systemctl e= nable postgres-11
created sym= link from /etc/systemd/system/multi-user.target.wants/postgresql-11.service= to /usr/lib/systemd/system/postgeresql-11.service.

# systemctl start postgresql-11
# systemctl status postgresql-11
postgresql-11.service - PostgreSQL 11 database server=
Loaded:loaded (/usr/lib/syst= emd/system/postgresql-11.service; enabled; vendor preset: disabled)
Active: active (running) since Tues = 2019-01-08 12:02:05 EST; 12s ago
and so on ....

# service postgres= ql initdb
hint: the perferred= way to do this is now "postgresql-set initdb"
Initializing database ... OK

but when I tried to correct the postgres.conf with the listen_addr= esses =3D '*' and port=3D5432.  Restart the postgresql server I get an= error.

redirecting to /bin/systemctl = start postgresql.service

job for postg= resql.service failed because the control proces exited with error code.&nbs= p; See "systemctl status postgresql.service" and "jouralctl -xe" for detail= s.

I run: 
#systemctl status postgresql.ser= vice -l
postgresql.service - = PostgreSQL database server
Lo= aded:loaded (/usr/lib/systemd/system/postgresql.service; diabled; vendor pr= eset: disabled)
Active: faile= d (result: exit-code) since Tues 2019-01-08 12:34:43 EST; 2min 22s ago
Process: 6896 ExecStart=3D/usr/bi= n/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=3Dexisted, s= tatus=3D1/FAILURE
Process: 68= 8 ExecStartPre=3D/usr/bin/postgresql-check-db-dir ${PGDATA} (code=3Dexisted= , status=3D0/SUCCESS) 
&n= bsp;
Jan 08 12:34:42 hostname pg_ctl[6896= ]:HINT: Is another postmaster alreadying runnin ...y
Jan 08 12:34:42 hostname pg_ctl[6896]:LOG: could no= t bing IPV6 socket: Addressa ...se
Jan 08 12:34:42 hostname pg_ctl[6896]:HINT: Is another postmaster alr= eadying runnin ...y
Jan 08 12= :34:42 hostname pg_ctl[6896]:WARNING: could not create any TCP/IP sockets
Jan 08 12:34:43 hostname pg_ct= l[6896]:pg_ctl: could nto start server
Jan 08 12:34:43 hostname pg_ctl[1]: postgresql.service: control p= rocess existed, c...=3D1
Jan 08 12:34:43 hostname pg_ctl[1]: Failed to start PostgreS= QL database server.
Jan 08 12:34:43 hostname pg_ctl[1]: Unit postgresql.service enter= ed failed state.
Jan 08 12:34:43 hostname pg_ctl[1]: postgresql.service failed

Hint: Some lines were ell= ipsized, use -l to show in full

what I= did wrong here?  Do I need to add listen_addresses =3D '*' and port = =3D 5432 on both /var/lib/pgsql/data/postgres.conf and /var/lib/pgsql/11/da= ta/postgres.conf ?

thank you for all = your help.

v/r,

Bach-Nga

No one in this world is pure and perfect.&= nbsp; If you avoid people for their mistakes you will be alone. So judge le= ss, love and forgive more.
<= font id=3D"yiv2461796157gmail-m_5907174653175733993yiv8271349837yui_3_16_0_= ym19_1_1546952750506_184728" color=3D"#8000ff">To call him a dog hardly see= ms to do him justice though in as much as he had four legs, a tail, and bar= ked, I admit he was, to all outward appearances. But to those who knew him = well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.=
*** Genuinely rich *** Faithful talent *** Sharing s= uccess


=
On Thursday, December 20, 2018 4:= 17 PM, Kris Deugau <kde= ugau@vianet.ca> wrote:


= Pepe TD Vo wrote:
> May you suggest me exactly reposit= ories packages needed for install
> PostgreSQL? = Seem to me this link,
> https://download.postgresql.org/pub/repos/yum= /11/redhat/rhel-7-x86_64/
> all rpm files needed= another dependencies.  Total more than 300 files
&= gt; and only a few allow me to install the rest of them needed another
> dependencies and didn't give me exactly what they are.<= br clear=3D"none">
Some of them will be from the stock Re= d Hat repositories, and some will
be from the PGDG repos= itory.  I haven't used that repository, and I
haven= 't done much on an RPM-based system for a while so I can't give you
any more specific information.

It's possible - but very tedious and difficult - to install a package =
with a large dependency tree entirely by hand.  I *= have* done this
myself in the past, and I recall a few c= ases where it literally took two
or three hours to get e= verything installed to support the specific
package I st= arted out trying to install.  This is why tools like yum
were developed;  they do the work of checking through the list t= o see
what's required, and where it can be installed fro= m.

This isn't specific to Postgres;&nb= sp; it's how the underlying OS package
system works.&nbs= p; You may want to see if someone in your office has more
experience installing packages on RHEL with yum and ask them to give you =
a hand.  You've got several issues around yum's bas= ic operation that you
need to fix, and local network/sys= tems admins should know enough about
your setup to help = a lot faster.


-kgd







------=_Part_16316270_350200314.1547136271937--