• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Amelie2024
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

05 2024 档案

 
文件拷贝脚本
摘要:#include <FileConstants.au3> #include <Array.au3> Global $sourceFolder = "G:\test_bak" Global $destinationFolder = "G:\select" Global $listFilePath = 阅读全文
posted @ 2024-05-19 20:15 Amelie2024 阅读(91) 评论(0) 推荐(0)
linux配置nfs共享
摘要:安装NFS服务器软件:确保您的远程主机上已经安装了NFS服务器软件。在大多数Linux发行版中,您可以使用包管理器来安装NFS服务器软件。例如,在基于Debian的系统上,您可以运行以下命令来安装NFS服务器软件: sudo apt-get install nfs-kernel-server配置NF 阅读全文
posted @ 2024-05-19 20:13 Amelie2024 阅读(340) 评论(0) 推荐(0)
mysql8 兼容配置
摘要:开启远程:需要开机兼容密码连接mysql_native_passwordUPDATE mysql.user SET Host = '%' WHERE User = 'root';ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password B 阅读全文
posted @ 2024-05-19 20:12 Amelie2024 阅读(45) 评论(0) 推荐(0)
定时时间矫正
摘要:yum install ntpdate 添加定时任务: 0 3 * * * /usr/sbin/ntpdate ntp.aliyun.com 阅读全文
posted @ 2024-05-19 20:11 Amelie2024 阅读(24) 评论(0) 推荐(0)
vsftp2配置文件备份
摘要:vsftp2文件: # /etc/pam.d/vsftpd #%PAM-1.0 # 这一行是注释,以%开头 # PAM 配置的版本号 auth required pam_unix.so # 使用系统密码文件进行认证 account required pam_unix.so # 使用系统密码文件进行账 阅读全文
posted @ 2024-05-19 20:08 Amelie2024 阅读(50) 评论(0) 推荐(0)
debian头文件不能安装,解决办法
摘要:sudo apt-get update # This will update the repositories list sudo apt-get upgrade # This will update all the necessary packages on your system sudo ap 阅读全文
posted @ 2024-05-19 20:02 Amelie2024 阅读(117) 评论(0) 推荐(0)
mysql容器的定时备份脚本,有二种方法,备份好后打包发送到远程备份主机
摘要:mysqldump [root@localhost node]# cat /root/mysqlbeifen.sh #!/bin/bash # 定义参数 CONTAINER_NAME="mysql" HOST_BACKUP_DIR="/bak" REMOTE_MACHINE_IP="192.168. 阅读全文
posted @ 2024-05-16 21:50 Amelie2024 阅读(90) 评论(0) 推荐(0)
通过BASH脚本实现DNS优选
摘要:0 2 * * * /root/mysqlbeifen.sh */10 * * * * /root/dns_update.sh #!/bin/bash LOG_DIR="/var/log/dns_script" HOST_FILE="/etc/hosts_NC" DOMAIN="sso.ccnhub 阅读全文
posted @ 2024-05-16 21:40 Amelie2024 阅读(112) 评论(0) 推荐(0)
日志报错监控,nodejs实现服务器日志监控,发现指定错误,发送到微信群
摘要:nohup node log2.js > log_output.log 2>&1 & const fs = require('fs'); const request = require('request'); const schedule = require('node-schedule'); co 阅读全文
posted @ 2024-05-16 21:37 Amelie2024 阅读(79) 评论(0) 推荐(0)
bash脚本监控服务器SSH登录,每30分钟运行一次,发现登录发送到企业微信群
摘要:// 开始循环检测 //loopCheck(); // 在每分钟的第 30 秒执行目标函数 cron.schedule('35 8 * * *', () => { console.log('目标函数在8:35执行!'); loopCheck_info(); // 在这里调用你想要定时执行的函数 }) 阅读全文
posted @ 2024-05-16 21:14 Amelie2024 阅读(72) 评论(0) 推荐(0)
NODEJS通过发送json数据查询目标服务,实现服务器状态监控,发现异常发送到微信群提醒
摘要:root@aea87fa6e6a2:/home/node# cat login2.js const request = require('request-promise'); const moment = require('moment'); const cron = require('node-c 阅读全文
posted @ 2024-05-16 21:04 Amelie2024 阅读(97) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3