swap检查脚本
#!/bin/bash# 检查 Swap 使用及回收原因# Author: Cheug# 用法: bash swap_check.shecho "=== 1. 当前内存和Swap使用情况 ==="free -mecho "------------------------------...
iptables防火墙已添加放行规则还是无法访问
问题:iptables防火墙已添加放行规则还是无法访问Chain INPUT (policy ACCEPT)target prot opt source destinationACCEP...
Linux用户计划任务无法执行
1.报错: Authenticationtokenisnolongervalid;newonerequired You(yunqiao)arenotallowedtoa...
扫描主机ip指定端口是否可以访问
#!/bin/bashinput_file="targets.txt"output_file="check_result.csv"max_parallel=20semaphore="/tmp/semaphore.$$"# 清理输出文件echo "IP,PORT,RESULT" > "$output_file&q...
js无感知跳转
(function() { // 配置部分 - 可自定义 const domains = [ 'https://a.com', &nb...
ansible批量更新密码
playbook_PW:- name: 更新密码 hosts: all gather_facts: no vars_files: - host.yml tasks: - name: 修改Root密码...
tar解压指定后缀文件并(不保留路径)
tar -xzvf /home/root/test.tar.gz --wildcards --no-anchored '*.html' --transform 's|.*/||'解释:--wildcards:允许使用通配符匹配。--no-anchored'*.html':匹配所有.html文件(无论它们在压缩包中的路径层次)。--transform...
LNMP高并发调整
Nginx优化:worker_processes:auto;worker_cpu_affinity auto;worker_rlimit_nofile 65535;http{ sendfileon; sendfile_max_chunk512k; #关闭压缩 gzipoff; ...
网卡配置备份自动恢复shell脚本
用于备份网卡配置文件后设置一个10分钟后执行的定时任务,自动恢复备份的网卡配置文件并重启网络服务#!/bin/bash# 定义网卡配置文件路径NIC_CONFIG_FILE="/etc/sysconfig/network-scripts/ifcfg-eth0"BACKUP_FILE="/etc/sysconfig/network-scripts/ifcfg-eth0.bak"RESTORE_SCRIPT...
杰奇cms1.7 articlenamepy字段 拼音化脚本
安装必要的依赖:go mod init myprojectgo get github.com/go-sql-driver/mysqlgo get github.com/mozillazg/go-pinyin完整的程序代码:package mainimport ( "database/sql"&nbs...
友情链接
人生重开模拟器Powered By Cheug's Blog
Copyright Cheug Rights Reserved.