自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 PostgreSQL14流复制

条件搭建步骤配置主库开启归档参见文章PostgreSQL14开启归档创建复制用户createuser -U postgres repuser -P -c 5 --replication密码:replication修改主机的配置修改postgresql.conf文件wal_keep_size=128wal_level=hot_standby ##关键行archive_timeout='900s'max_wal_senders=3archive_mode = 'ON'ar

2022-01-26 14:09:09 1466 1

原创 PostgreSQL14开启归档

开启归档创建归档目录postgres@zjarn2021-Qh:~$ mkdir 14_bakmkdir: cannot create directory ‘14_bak’: File existspostgres@zjarn2021-Qh:~$ pwd/var/lib/postgresqlpostgresql.conf相关参数cat /etc/postgresql/14/main/postgresql.conf archive_mode = 'ON'archive_comman

2022-01-25 00:02:53 1305

原创 apt-get install 一个软件提示无关的软件安装失败

现象:zjarn2021@zjarn2021-Qh:~$ sudo apt-get -y install postgresqlReading package lists... DoneBuilding dependency tree Reading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have

2022-01-24 01:01:07 933

原创 docker上运行postgresql

docker run postgres --env HTTP_PROXY=“socket5://192/168/1/105:1081” -e POSTGRES_PASSWORD=123456start a postgres instancedocker run --name postgres1 -e POSTGRES_PASSWORD=zj@sz2020 -d postgresstop a ...

2020-03-08 12:20:13 949

原创 gRPC用python尝鲜

0 准备参考资料官方文档下载gRPCgit clone -b v1.27.0 https://github.com/grpc/grpcpython环境python virtualenv环境准备$ python -m pip install virtualenv$ virtualenv grpc_venv$ source grpc_venv/Scripts/activate$ ...

2020-03-08 10:53:19 342

原创 用 gpss 从 kafka 消费数据加载到 greenplum

0. 准备kafka生产者和消费者kafka生产者程序:kafka-console-producer.sh --broker-list 192.168.12.115:7776 --topic gpss_testkafka消费者程序:kafka-console-consumer.sh --bootstrap-server 192.168.12.115:7776 --topic gpss_t...

2020-02-26 17:18:15 1517 1

原创 一个从文本文件插入到数据库的代码

一个从文本文件插入到数据库的代码public static void insertFromFile(Connection conn,File file) throws Exception { String sql = "insert into test1 values (?,?,?)"; BufferedReader br = new

2016-12-13 12:07:44 340

转载 /etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc

/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当

2015-05-17 17:02:02 197

原创 vsftp服务搭建和配置

500 OOPS: cannot change directory:/home/user

2014-04-07 12:24:59 407

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除