当前位置:网站首页>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
边栏推荐
- 个人博客系统项目测试
- 用位运算为你的程序加速
- Kubernetes之本地存储
- Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
- 电子制造仓储条码管理系统解决方案
- JDBC PreparedStatement 的命名参数实现
- 2023年起,这些地区软考成绩低于45分也能拿证
- "Introduction to Natural Language Processing Practice" Question Answering Robot Based on Knowledge Graph
- "NetEase Internship" Weekly Diary (3)
- 成都openGauss用户组招募啦!
猜你喜欢

Day116. Shangyitong: Details of appointment registration ※

Huawei's 5-year female test engineer resigns: what a painful realization...

【LeetCode每日一题】——103.二叉树的锯齿形层序遍历

AOF重写

Use baidu EasyDL implement factory workers smoking behavior recognition

Analysis of volatile principle

Fly propeller power space future PIE - Engine Engine build earth science

【LeetCode每日一题】——704.二分查找

【ORB_SLAM2】void Frame::ComputeImageBounds(const cv::Mat &imLeft)

Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
随机推荐
Handwriting a blogging platform ~ the first day
typescript34-class的基本使用
PHP直播源码实现简单弹幕效果的相关代码
有效进行自动化测试,这几个软件测试工具一定要收藏好!!!
3. Bean scope and life cycle
求大神解答,这种 sql 应该怎么写?
软件测试功能测试全套常见面试题【开放性思维题】面试总结4-3
MySQL优化策略
A full set of common interview questions for software testing functional testing [open thinking questions] interview summary 4-3
Redis 持久化 - RDB 与 AOF
搜罗汇总的效应
Typescript31 - any type
YGG Guild Development Plan Season 1 Summary
When paying attention to the "Internet +" model, you usually only focus on the "Internet +" model itself
待读书单列表
LeetCode brushing diary: 33. Search and rotate sorted array
volatile原理解析
bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
力扣 1161. 最大层内元素和
飞桨开源社区季度报告来啦,你想知道的都在这里