当前位置:网站首页>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
边栏推荐
- typescript30 - any type
- Rust P2P网络应用实战-1 P2P网络核心概念及Ping程序
- 哈希表
- For effective automated testing, these software testing tools must be collected!!!
- ofstream,ifstream,fstream读写文件
- MySQL optimization strategy
- Named parameter implementation of JDBC PreparedStatement
- 数据链路层的数据传输
- LeetCode刷题日记:74. 搜索二维矩阵
- Chengdu openGauss user group recruit!
猜你喜欢
6-24 exploit-vnc password cracking
【轮式里程计】
Check if IP or port is blocked
『网易实习』周记(一)
Data transfer at the data link layer
Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided
用位运算为你的程序加速
A full set of common interview questions for software testing functional testing [open thinking questions] interview summary 4-3
数据链路层的数据传输
使用百度EasyDL实现厂区工人抽烟行为识别
随机推荐
手写博客平台~第二天
哈希冲突和一致性哈希
Win Go开发包安装配置、GoLand配置
Kubernetes之本地存储
"NetEase Internship" Weekly Diary (3)
Chengdu openGauss user group recruit!
电子制造仓储条码管理系统解决方案
6-25 Vulnerability Exploitation - irc Backdoor Exploitation
PHP直播源码实现简单弹幕效果的相关代码
Fly propeller power space future PIE - Engine Engine build earth science
Force buckle, 752-open turntable lock
Centos7 安装postgresql并开启远程访问
使用百度EasyDL实现厂区工人抽烟行为识别
『网易实习』周记(一)
Constructor instance method inheritance of typescript38-class (implement)
60种特征工程操作:使用自定义聚合函数【收藏】
字节给我狠狠上了一课:危机来的时候你连准备时间都没有...
超大规模的产业实用语义分割数据集PSSL与预训练模型开源啦!
『网易实习』周记(三)
项目后台技术Express