虚拟机环境部署sbc主备
摘要:一、在esxi虚拟机后台为两台虚拟机增加第二块网卡用于管理口 参考:linux esxi虚拟机双网卡设置 二、配置双网卡参数 sbc-1 业务网卡:ens192 管理网卡:ens224 ens192配置: [root@localhost ~]# vim /etc/sysconfig/network-
阅读全文
curl 测试webdav
摘要:一、新建目录(目录名后面一定要带/) [root@hlcc_slave logs]# curl -v -X MKCOL http://114.255.71.xxx:18800/dir-test/ -u hlccdav Enter host password for user 'hlccdav': *
阅读全文
postgres主从切换后,原主重新加入集群报错:pg_rewind: error: could not open file
摘要:一、用keepalived进行脚本主从切换,当原主重新加入集群报错 [root@hlcc_slave data]# /usr/pgsql-13/bin/pg_rewind -D '/home/postgres/data' --source-server='host=172.28.17.142 por
阅读全文
postgresql 常用数据库命令
摘要:1、连接数据库, 默认的用户和数据库是postgrespsql -h host -p port -U user -d dbname 2、执行sql文件 psql -h ${PGHOST} -p ${PGPORT} -U ${PGUSER} -d safe_browser -f xxxx.sql \i
阅读全文