CentOS7安装PostgreSQL10,pgadmin4
======PostgreSQL10 CentOS7=================
FYI:https://tecadmin.net/install-postgresql-server-centos/
##1 – 增加源 Add Postgres Yum Repository
rpm -Uvh https://yum.postgresql.org/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
##2 – 安装 Install PostgreSQL 10 Server
yum install postgresql10-server postgresql10
##3 – 初始化 Initialize PGDATA
/usr/pgsql-10/bin/postgresql-10-setup initdb
... wait ... PostgreSQL data directory Path: /var/lib/pgsql/10/data/
##4 – 启动 Start PostgreSQL Server
systemctl start postgresql-10.service
systemctl enable postgresql-10.service
##5 – 验证 Verify PostgreSQL Installation
su - postgres -c "psql"
psql (10.0)
Type "help" for help.
postgres=#
##6 – 修改密码 You may create a password for user postgres for security purpose.
postgres=# \password postgres
...
======pgadmin=======================
FYI:https://people.planetpostgresql.org/devrim/index.php?/archives/96-Installing-pgAdmin4-3.X-on-RHEL-CentOS-7-and-Fedora-27.html
安装源,同postgresql...
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
https://yum.postgresql.org /10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
##1 pgadmin 安装
yum install pgadmin4
##2 运行shell脚本
/usr/pgadmin4/bin/pgadmin4-web-setup.sh
输入登陆邮箱95...qq.com及密码pg123...
##3.1 For desktop mode on non-GNOME environment, please run this command:
yum (or dnf) install pgadmin4-desktop-common
##3.2 For desktop mode on GNOME environment, please run this command:
yum (or dnf) install pgadmin4-desktop-gnome
应用程序里的pgadmin快捷方式,打开,进入浏览器:
http://127.0.0.1:59240/browser/
============================
https://wiki.postgresql.org/wiki/Community_Guide_to_PostgreSQL_GUI_Tools
https://wiki.postgresql.org/wiki/数据库对比
https://yum.postgresql.org/files/PostgreSQL-RPM-Installation-PGDG.pdf
======================================
修改数据库管理帐号postgres密码:
root下:su postgres, 然后再:psql, 进入:postgres=# (help,具体命令需要;结尾,例如)
postgres=# ALTER USER postgres WITH PASSWORD 'abc123';
ALTER ROLE
postgres=#
CentOS7安装PostgreSQL10,pgadmin4的更多相关文章
- centos7 安装postgresql10
https://blog.csdn.net/rudy5348/article/details/79299162
- 在CentOS7(虚拟机)下通过源码安装Postgresql10以及基本配置
操作系统:CentOS7 安装文件:postgresql-10.0.tar.gz 系统环境:gcc.Python 1:源码安装 [postgres@localhost ~]# tar zxvf pos ...
- Ubuntu18.04安装postgresql-10
Ubuntu18安装postgresql-10 最近切换Ubuntu作为办公系统,所有软件安装都要重来一遍. 官方文档: https://www.postgresql.org/download/lin ...
- HP服务器 hp 360g5 centos7安装问题
HP服务器 hp 360g5 centos7安装问题 一 :启动盘无法识别硬盘 1.进入安装光盘,用上下键选择安装centos--Install Centos7(注意不可按Enter键),如图: 2 ...
- CentOS7 安装Mono及Jexus
CentOS7安装Mono及Juxes 1 安装Mono 1.1 安装yum-utils 因为安装要用到yum-config-manager,默认是没有安装的,所以要先安装yum-utils包.命令如 ...
- CentOS7安装mysql提示“No package mysql-server available.”
针对centos7安装mysql,提示"No package mysql-server available."错误,解决方法如下: Centos 7 comes with Mari ...
- CentOS7安装Oracle 11gR2 安装
概述 Oracle 在Linux和window上的安装不太一样,公司又是Linux系统上的Oracle,实在没辙,研究下Linux下Oracle的使用,oracle默认不支持CentOS系统安装,所以 ...
- Centos7安装完毕后重启提示Initial setup of CentOS Linux 7 (core)的解决方法
问题: CentOS7安装完毕,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License i ...
- centos7安装eclipse
centos7安装eclipse Eclipse是一个集成开发环境(IDE),包含一个基工作区和定制环境的可扩展插件系统.大部分使用 Java 编写,Eclipse 可以用来开发应用程序.通过各种插件 ...
随机推荐
- pycharm搭建开发配置,远程调试,数据库配置,git配置等
1 开发环境搭建 1.1 简介 使用虚拟机作为代码运行环境,本地使用pycharm进行代码编辑,使用远程调试功能进行debug. 1.1 安装centos虚拟机环境: 1.操作系统: 2.网络配置: ...
- 服务消费和负载(Feign)
Spring Cloud Feign Spring Cloud Feign是一套基于Netflix Feign实现的声明式服务调用客户端.它使得编写Web服务客户端变得更加简单.我们只需要通过创建接口 ...
- HotSpot虚拟机对象探秘
参考:http://www.infoq.com/cn/articles/jvm-hotspot
- python全栈开发笔记---------变量小结
变量是什么? 变:变化,重在变字,量:计量,衡量,表示一种状态. 变量字面理解就是一个可能改变的量,也就是这个值是不固定的. 变量名: a.数字 b.字母 c.下划线 变量的定义 level = 1 ...
- js 动态绑定鼠标事件
<script> function getElementsByClassName(n) { var classElements = [],allElements = document.ge ...
- mybatis学习(二)----对表进行CRUD操作
一.使用MyBatis对表执行CRUD操作——基于XML的实现 userMapper.xml映射文件如下: <?xml version="1.0" encoding=&quo ...
- 关于js中函数的调用问题
js中函数的调用方法 1.直接调用 函数名(参数): 2.通过指向函数的变量去调用 例如: var myval = 函数名: 此刻 myval是指向函数的一个指针: myval(实际参数):此刻调用的 ...
- Java语法基础学习DayFour
一.面向对象 1.特点: A:是一种更符合我们思考习惯的思想B:把复杂的事情简单化C:让我们从执行者变成了指挥者 2.使用: a:创建对象格式类名 对象名 = new 类名();b:如何使用成员变量和 ...
- jmeter中添加压力机
在压测的时候,可能并发比较大,一台机子已经启动不了那么多并发了,这个时候就是有多台机子一起来并发,就要添加压力机 如何添加压力机呢: 1.其他电脑上也安装了jmeter,和其他电脑都能ping通当前电 ...
- L256 翻译
Should work be placed among the causes of happiness or be regarded as a burden? Much work isexceedin ...