forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
23 lines
3.3 KiB
HTML
23 lines
3.3 KiB
HTML
<a name="rds_faq_0029"></a><a name="rds_faq_0029"></a>
|
|
|
|
<h1 class="topictitle1">How Can I Install the PostgreSQL Client?</h1>
|
|
<div id="body8662426"><p id="rds_faq_0029__en-us_topic_0000001200592521_p2060218352516">PostgreSQL provides <a href="https://www.postgresql.org/download/" target="_blank" rel="noopener noreferrer">client installation methods</a> for different OSs on its official website.</p>
|
|
<p id="rds_faq_0029__p669565917561">The following describes how to install a PostgreSQL 12 client in CentOS.</p>
|
|
<div class="section" id="rds_faq_0029__section58621517419"><h4 class="sectiontitle">Procedure</h4><ol id="rds_faq_0029__en-us_topic_0000001200592521_ofd5b72660bb7486691e451318712a566"><li id="rds_faq_0029__en-us_topic_0000001200592521_l0b58119df95e479e96c8c2e10edf2c4e"><span>Log in to an ECS.</span><p><ol type="a" id="rds_faq_0029__en-us_topic_0000001200592521_ol16167145216453"><li id="rds_faq_0029__en-us_topic_0000001200592521_li41670526455">When you create an ECS, select an OS, such as CentOS 7, and bind an EIP to it.</li><li id="rds_faq_0029__en-us_topic_0000001200592521_li151674526458">Use a remote connection tool to connect to the ECS through the EIP.</li></ol>
|
|
</p></li><li id="rds_faq_0029__li2347105054417"><span>Open the <a href="https://www.postgresql.org/download/linux/redhat/" target="_blank" rel="noopener noreferrer">client installation page</a>.</span></li><li id="rds_faq_0029__li28762312460"><span>Select a DB engine version, OS, and OS architecture, and run the following commands on the ECS to install a PostgreSQL client.</span><p><pre class="screen" id="rds_faq_0029__screen29441326175516">sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
|
sudo yum install -y postgresql12-server</pre>
|
|
<div class="fignone" id="rds_faq_0029__fig115581646114711"><span class="figcap"><b>Figure 1 </b>Installing a client</span><br><span><img id="rds_faq_0029__image11875173144610" src="en-us_image_0000001445233198.png"></span></div>
|
|
<ul id="rds_faq_0029__ul191572725014"><li id="rds_faq_0029__li615027185012">Select a DB engine version that is consistent with that of your RDS for PostgreSQL instance.</li><li id="rds_faq_0029__li51512276501">Select an OS that is consistent with that of the ECS.</li><li id="rds_faq_0029__li115192719505">Select an OS architecture that is consistent with that of the ECS.</li></ul>
|
|
<div class="fignone" id="rds_faq_0029__fig1298114472555"><span class="figcap"><b>Figure 2 </b>Installing the RPM package</span><br><span><img id="rds_faq_0029__image133911248195414" src="en-us_image_0000001495233177.png"></span></div>
|
|
<div class="fignone" id="rds_faq_0029__fig10343229185619"><span class="figcap"><b>Figure 3 </b>Client installed</span><br><span><img id="rds_faq_0029__image177151823175610" src="en-us_image_0000001444753346.png"></span></div>
|
|
</p></li><li id="rds_faq_0029__li153765581715"><span>Connect to the RDS for PostgreSQL instance.</span><p><div class="fignone" id="rds_faq_0029__fig19915185165913"><span class="figcap"><b>Figure 4 </b>Connection successful</span><br><span><img id="rds_faq_0029__image109196488591" src="en-us_image_0000001444913286.png"></span></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_faq_0152.html">Client Installation</a></div>
|
|
</div>
|
|
</div>
|
|
|