摘要:
pg_ctl 名称 pg_ctl -- 启动、停止、重启 PostgreSQL 语法 pg_ctl start [-w] [-s] [-D datadir] [-l filename] [-o options] [-p path]pg_ctl stop [-W] [-s] [-D datadir] 阅读全文
posted @ 2021-09-29 14:26
疯子110
阅读(3465)
评论(0)
推荐(0)
摘要:
服务器每天都会定时备份数据库和文件,时间久了导致磁盘空间不足。所以需要用shell脚本实现定时清理文件。 创建shell文件 clear_tmp_file # vi clear_tmp_file.sh 写入清理命令 #!/bin/sh find /home/tmp/log -mtime +2 -na 阅读全文
posted @ 2021-09-29 14:22
疯子110
阅读(1116)
评论(0)
推荐(0)