1. centos常用命令<p>获取当前日期 date +"%d" 需要给目录 postgres 权限 chown postgres:postgres /data/pg_log 给目录执行.sh 权限 chmod +x *.sh 重启服务器 init 6 或 shutdown -r now</p>