当前位置:网站首页>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
边栏推荐
- 『网易实习』周记(一)
- Coding Experience Talk
- 【Brush the title】Family robbery
- Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批
- The ultra-large-scale industrial practical semantic segmentation dataset PSSL and pre-training model are open source!
- Shell入门终章
- CodeTon Round 2 D. Magical Array 规律
- 手写博客平台~第二天
- Record the pits where an error occurs when an array is converted to a collection, and try to use an array of packaging types for conversion
- Redis 底层的数据结构
猜你喜欢
5年自动化测试经验的一些感悟:做UI自动化一定要跨过这10个坑
Hash collisions and consistent hashing
After graduating from three books, I was rejected by Tencent 14 times, and finally successfully joined Alibaba
力扣 1374. 生成每种字符都是奇数个的字符串
Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
typescript30-any类型
typescript31-any类型
【图像融合】基于加权和金字塔实现图像融合附matlab代码
"NetEase Internship" Weekly Diary (3)
Rust P2P网络应用实战-1 P2P网络核心概念及Ping程序
随机推荐
Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
个人博客系统项目测试
【ORB_SLAM2】void Frame::AssignFeaturesToGrid()
PHP直播源码实现简单弹幕效果的相关代码
3. Bean scope and life cycle
Win Go开发包安装配置、GoLand配置
Constructor of typescript35-class
6-25 Vulnerability Exploitation - irc Backdoor Exploitation
Navicat数据显示不完全的解决方法
云和恩墨:让商业数据库时代的价值在openGauss生态上持续繁荣
雇用WordPress开发人员:4个实用的方法
AntPathMatcher使用
Analysis of volatile principle
LeetCode刷题日记:53、最大子数组和
Image fusion based on weighted 】 and pyramid image fusion with matlab code
Golang分布式应用之Redis
LeetCode brush diary: LCP 03. Machine's adventure
字节给我狠狠上了一课:危机来的时候你连准备时间都没有...
typescript34-class的基本使用
typescript32-ts中的typeof