整理文档
This commit is contained in:
130
postgresql_and_edb/Centos搭建edb9.5.md
Normal file
130
postgresql_and_edb/Centos搭建edb9.5.md
Normal file
@ -0,0 +1,130 @@
|
||||
# centos 搭建EDB9.5
|
||||
|
||||
|
||||
|
||||
## 版本信息
|
||||
|
||||
- **centos 7.6**
|
||||
- **edb9.5**
|
||||
|
||||
|
||||
|
||||
## 安装edb
|
||||
|
||||
准备安装文件`postgresplusas-9.5.17.23-1-linux-x64.run` 文件后续提供
|
||||
|
||||
修改权限 `chmod +x postgresplusas-9.5.17.23-1-linux-x64.run`
|
||||
|
||||
执行安装命令 `./postgresplusas-9.5.17.23-1-linux-x64.run`
|
||||
|
||||
|
||||
|
||||
配置安装参数
|
||||
|
||||

|
||||
|
||||
输入数字 `3` 选择中文
|
||||
|
||||
|
||||
|
||||
然后根据自身需要 配置安装路径 、数据储存路径、日志路径,以及兼容oracle 还是postgresql
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
**兼容oracle与兼容postgresql的区别**
|
||||
|
||||
如果选择oracle 将使得 数据类型 函数 语法等更偏向 oracle
|
||||
|
||||
如:
|
||||
|
||||
date 类型 在oracle 中包含时间 ,在postgresql 中不包含时间,选择oracle 兼容后 date将自动转为 timestamp
|
||||
|
||||
|
||||
|
||||
设置管理员密码 端口
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
设置语言环境 这里选择 中文 zh_cn.utf8
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
以及设置服务器运行模式 ,以及用途
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
之后就开始安装了
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 设置EDB
|
||||
|
||||
设置远程登录,连接数(进程数)
|
||||
|
||||
|
||||
|
||||
```sh
|
||||
vim /数据目录/pg_hba.conf
|
||||
```
|
||||
|
||||
在文档的最后添加
|
||||
|
||||
```
|
||||
host all all 0.0.0.0/0 md5
|
||||
```
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
修改连接数(根据服务器配置来 )
|
||||
|
||||
|
||||
|
||||
vim /数据目录/ postgresql.conf
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
**重启生效**
|
||||
|
||||
`systemctl restart ppas-9.5.service`
|
||||
|
||||
|
||||
|
||||
## edb9启动方式
|
||||
|
||||
```sh
|
||||
#Linux:
|
||||
/etc/init.d/ppas-9.x <start|stop|restart|status|reload>
|
||||
service ppas-9.x <start|stop|restart|status|reload>
|
||||
|
||||
#通用方式:
|
||||
sudo su - enterprisedb
|
||||
$PGHOME/bin/pg_ctl <start|stop|restart|status|reload> [options]
|
||||
|
||||
#默认数据路径
|
||||
opt/PostgresPlus/9.5AS
|
||||
```
|
||||
|
Reference in New Issue
Block a user