CentOS7安装部署PostgresSQL9.6
来源:互联网 发布:c语言第四章答案 编辑:程序博客网 时间:2024/04/18 20:59
- 验证环境
- 安装
- 配置
1 验证环境
操作系统
CentOS-7-x86_64-DVD-1708PostgresSQL版本
PostgreSQL 9.6.3:https://www.postgresql.org/download/linux/redhat/
2 安装
- 安装RPM源
#sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
- 安装客户端
#sudo yum install postgresql96
- 安装服务端
#sudo yum install postgresql96-server
- 初始化
#sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
- 设置开机启动
#sudo systemctl enable postgresql-9.6
- 启动
#sudo systemctl start postgresql-9.6
- 修改默认用户密码
// 切换为默认创建的系统账号postgres#sudo su - postgres// 以数据库账号postgres登录数据库// PostgreSQL在数据库用户同名的系统账号下登录免密-bash-4.2$psql -U postgres// 修改postgres密码postgres=#alter user postgres with password 'postgres@123'// 退出postgres=#\q-bash-4.2$exit
3 配置
- 开启远程访问
#vi /var/lib/pgsql/9.6/data/postgresql.conf
- 配置信任远程连接
#vi /var/lib/pgsql/9.6/data/pg_hba.conf
阅读全文
0 0
- CentOS7安装部署PostgresSQL9.6
- CENTOS7安装部署ORACLE11G
- SuperSet CentOs7安装部署
- CentOS7安装部署Docker
- centos7.1安装部署Hadoop
- Centos7 Gogs服务安装部署
- centos7安装部署gitlab服务器
- CentOS7安装部署MySql5.7.15
- centos7+tomcat+cmdbuild安装部署
- CentOS7.3安装部署wordpress
- CentOS7 Tomcat JSP 安装部署
- centos7环境下ceph安装部署
- Centos7下Hive-1.2.1安装部署
- centos7 安装部署jdk环境及tomcat
- Redis在Centos7上的安装部署
- centos7 安装部署redis-3.2.1
- 在Centos7上部署安装RobotFramework
- linux(CentOS7)中安装JDK7,部署jboss7
- 深度学习: Full Connection (全连接层)
- Vue前后端不同端口实现方案
- 蓝桥杯 算法训练 未名湖边的烦恼
- [C/C++]OJ练习题:Z字形扫描(Zigzag Scan)
- python 闭包
- CentOS7安装部署PostgresSQL9.6
- ggbiplot-最好看的PCA作图:样品PCA散点+分组椭圆+主成分丰度和相关
- C++ Boost在VS2017中的使用
- C# XML 用法
- android银行卡操作步骤
- Google Architecture Components 使用
- 技术问答整理(10)
- Mysql主从同步
- comet4j中 CometContext.getInstance().getEngine(); 空指针异常