10 2022 档案

摘要:获取要监控的本地服务器IP地址 IP=ifconfig eth0 | grep "inet addr" | cut -f 2 -d ":" | cut -f 1 -d " " 或者 IP=/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v in 阅读全文
posted @ 2022-10-13 14:03 tangtangtu 阅读(557) 评论(0) 推荐(0) 编辑
摘要:脚本名称:服务器巡检脚本.sh 脚本内容 !/bin/bash host_ip=/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:" mkdir /home/$host_i 阅读全文
posted @ 2022-10-13 10:19 tangtangtu 阅读(374) 评论(0) 推荐(0) 编辑
摘要:一、前言说明 1.1针对版本 centos7.6下postgres9.6 1.2安装路径为: /var/lib/pgsql/9.6/ 1.3注意: postgresql.auto.conf 优先级大于 postgresql.conf ****更改之前请备份! 1.4 重启服务命令 systemctl 阅读全文
posted @ 2022-10-11 16:30 tangtangtu 阅读(579) 评论(0) 推荐(0) 编辑