摘要:
pg_ctl stop$ pg_ctl --help Usage: pg_ctl stop [-W] [-t SECS] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] Common options: -D, --pgdata=DATADIR location of the 阅读全文
posted @ 2020-04-09 10:40
疯子110
阅读(984)
评论(0)
推荐(0)
摘要:
前言 版本: PostgreSQL 9.5 linux:CentOS7 下载在postgresql的官方即可找到源码文件目录,地址如下:https://www.postgresql.org/ftp/source/,在下载列表中根据需求选择版本,如下图: 进入子目录后,可以看到文件列表: 如上图,可以 阅读全文
posted @ 2020-04-09 10:06
疯子110
阅读(1578)
评论(1)
推荐(0)
摘要:
有两种方法: useradd 用户名 echo 用户名:密码 | chpasswd echo 密码|passwd --stdin 用户名 阅读全文
posted @ 2020-04-09 09:46
疯子110
阅读(7237)
评论(0)
推荐(0)
摘要:
一、Postgresql使用的端口是: 5432/tcp 二、centos7防火墙默认的zone是:public 三、 firewall-cmd –zone=public –list-ports //查看已开放的端口 firewall-cmd –zone=public –add-port=5432/ 阅读全文
posted @ 2020-04-09 09:45
疯子110
阅读(1089)
评论(0)
推荐(0)
摘要:
今天修改pg的端口号port改成5435后重启完数据库的时候直接psql进库的时候进不去[postgres@node2 data]$ psqlpsql: could not connect to server: No such file or directory Is the server runn 阅读全文
posted @ 2020-04-09 09:44
疯子110
阅读(1160)
评论(0)
推荐(0)
摘要:
环境变量是和Shell紧密相关的,用户登录系统后就启动了一个Shell。对于Linux来说一般是bash,但也可以重新设定或切换到其它的 Shell。对于UNIX,可能是CShelll。环境变量是通过Shell命令来设置的,设置好的环境变量又可以被所有当前用户所运行的程序所使用。对于bash这个Sh 阅读全文
posted @ 2020-04-09 09:43
疯子110
阅读(3159)
评论(0)
推荐(0)