当前位置:网站首页>Centos7 install postgresql and enable remote access
Centos7 install postgresql and enable remote access
2022-08-02 02:00:00 【niuge No.1】
1. Installation tutorial
Download Page/Download: WorldThe most powerful open source database on...
Source code installation guideQuick reference for Linux platform compilation and installation (Centos platform/Pg12.2 as an example):wget https://ftp.postgresql.org/pub/source/v12.2/postgresql-12.2.tar.bz2tar xjvf postgresql*.bz2 #Extract to a directorycd potgresql-12.2./configure --prefix=/opt/pgsql #To be installed to /opt/pgsqlmake worldmake install-worldadduser postgres #Add a new user, the system prompts to give a new user passwordmkdir /opt/pgsql/data #Create database directorychown -R postgres:postgres /opt/pgsql/datasu - postgres #Use the postgres account to operate/opt/pgsql/bin/initdb -D /opt/pgsql/data #Initialize the database/opt/pgsql/bin/pg_ctl -D /opt/pgsql/data -l logfile start #Start the database/opt/pgsql/bin/createdb genericdb #Assume the database name is gerericdb)/opt/pgsql/bin/psql genericdb # (into the database)2. In the middle of the readline error, the solution:
A readline error occurred when installing postgresql- comeTeapot - Blog Garden
Install readline-devel and zlib-devel packages
yum -y install -y readline-devel;yum install zlib-devel;3. Open remote connection
边栏推荐
- When paying attention to the "Internet +" model, you usually only focus on the "Internet +" model itself
- 3 Month Tester Readme: 4 Important Skills That Impacted My Career
- 3个月测试员自述:4个影响我职业生涯的重要技能
- Chengdu openGauss user group recruit!
- LeetCode Brushing Diary: 74. Searching 2D Matrix
- "NetEase Internship" Weekly Diary (3)
- Golang分布式应用之Redis
- 【ORB_SLAM2】void Frame::ComputeImageBounds(const cv::Mat &imLeft)
- Shell入门终章
- Basic use of typescript34-class
猜你喜欢
随机推荐
检查IP或端口是否被封
Analysis of volatile principle
C语言之插入字符简单练习
Coding Experience Talk
力扣 1161. 最大层内元素和
Constructor instance method inheritance of typescript38-class (implement)
typescript36-class的构造函数实例方法
Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided
LeetCode刷题日记:53、最大子数组和
乱七八糟的网站
Navicat data shows incomplete resolution
Shell入门终章
Chengdu openGauss user group recruit!
LeetCode Review Diary: 34. Find the first and last position of an element in a sorted array
pcie inbound和outbound关系
《自然语言处理实战入门》 基于知识图谱的问答机器人
【服务器数据恢复】服务器Raid5阵列mdisk磁盘离线的数据恢复案例
云和恩墨:让商业数据库时代的价值在openGauss生态上持续繁荣
typeof in typescript32-ts
【图像融合】基于加权和金字塔实现图像融合附matlab代码








