https://qn.chenzqi.cn/chenshen/logo.png

mac清除navicat残留配置文件

sudo rm -Rf /Applications/Navicat\ Premium.app sudo rm -Rf /private/var/db/BootCaches/CB6F12B3-2C14-461E-B5A7-A8621B7FF130/app.com.prect.NavicatPremium.playlist sudo rm -Rf ~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/com.prect.NavicatPremium.help sudo rm -Rf ~/Library/Caches/com.apple.helpd/SDMHelpData/Other/zh_CN/HelpSDMIndexFile/com.prect.NavicatPremium.help sudo rm -Rf ~/Library/Preferences/com.prect.NavicatPremium.plist sudo rm -Rf ~/Library/Application\ Support/CrashReporter/Navicat\ Premium_54EDA2E9-528D-5778-A528-BBF9A4CE8BDC.plist sudo rm -Rf ~/Library/Application\ Support/PremiumSoft\ CyberTech

docker-compose安装nginx,mysql,redis,postgres

tree结构 docker ├── compose │ ├── db │ └── nginx ├── mysql │ ├── data │ └── my.cnf ├── nginx │ ├── conf.d │ ├── etc │ ├── html │ ├── logs │ ├── nginx.conf │ └── www └

CS系统相关

cs gocron web&node gocron-web nohup ./gocron-linux-amd64/gocron web > /opt/server/gocron/log/gocron_web.log 2>&1 & gocron-node nohup sudo -u gocron ./gocron-node-linux-amd64/gocron-node > /opt/server/gocron/log/gocron_node.log 2>&1 & cs web vue cd /opt/docker/nginx/html/gin-web/ git pull docker restart nginx cs server gin cd /opt/server/gin-server git pull ps -ax | grep go kill *** nohup go run . >/dev/null 2>&1 & cs cccf-spider cd /opt/server/cccf-spider git pull

docker-postgresql数据库备份与恢复

备份脚本 #!/bin/sh # 备份存放位置 BACKUP_DIR=/data/backup/pg/ file=$BACKUP_DIR"gin_server_$(date +"%Y%m%d").sql" docker exec -t postgres pg_dump -U pq_user -d db_name > "${file}" # 删除7天之前的备份 deleteDIR=$BACKUP_DIR"gin_server_$(date --date='7 day ago' +%Y%m%d).sql" rm -rf $deleteDIR 恢复数据 正式数据库 cat gin_server_20190801.sql| docker exec -i postgres psql -U pq_user 其他数据库 创建数