摘要:#!/bin/bash echo "- - -" > /sys/class/scsi_host/host0/scan diskn=$(fdisk -l | grep "Disk " | grep "/dev/sd" | awk '{print $2}' | sort -r | head -1 | c
        
阅读全文
 
    
        
        
摘要:今天维护asterisk时发现WEB打不开,ssh进系统看,httpd服务掉了,尝试重启https: systemctl restart httpd 报错,查看/var/log/httpd/error.log 显示:No space left on device: AH00023: Couldn't
        
阅读全文
 
    
        
        
摘要:#/bin/bashfilename=/opt/swapfile/4GB-`hexdump -n8 -e'8/1 "%02x"' /dev/urandom`.swapdd if=/dev/zero of=$filename bs=1024 count=4194304/sbin/mkswap $fil
        
阅读全文
 
    
        
        
摘要:文章转自: https://www.douban.com/group/topic/91587543/ 主要是省去了电话布线的费用。当然如果与vpn结合,还可以省移动话费。在有wifi的地方都可以打电话 手机上的client包括bria,zoiper。pc/notebook上的软件是x-lite 需要
        
阅读全文
 
    
        
        
摘要:通过zabbix监控windows,由于zabbix server运行在linux下,采用utf-8内码处理,而windows则以gbk(gb2312)做内码,所以当有中文内容上报到zabbix时,会造成编码错误 通过实践,经以下代码处理后,输出基本上符合需求,需不无完全保证无乱码,但已经完全可以接
        
阅读全文
 
    
        
        
摘要:#!/bin/sh # # DropBrute.sh @20130516 # # minimalist OpenWRT/dropbear ssh brute force attack banning script # # Installation steps: # # 1) Optionally e
        
阅读全文
 
    
        
        
摘要:本想测试一下开源WAF,看了文章要用到nginx-lua模块,一般情况下nginx加模块需要手工编译源代码,对于懒人来说,手工编译是什麻烦事,所以就放狗找现在nginx-all-modules的rpm去了 找到一篇参考文章: https://centos.pkgs.org/7/epel-armhfp
        
阅读全文
 
    
        
        
摘要:软件包下载地址:MegaRAID Storage Manager v17.05.02.01 for Linux - IBM Systems 安装参考:https://blog.csdn.net/feng4656/article/details/9959557 分割线 有时侯Mega服务端没有启动,可
        
阅读全文
 
    
        
        
摘要:一、本机的端口转发: iptables -t nat -I PREROUTING -i pppoe-wan -p udp --dport 53 -j REDIRECT --to-ports 5300 就是将指定的pppoe-wan接口的53端口udp请求转发到5300端口 检查: iptables 
        
阅读全文
 
    
        
        
摘要:参考资料: https://www.jianshu.com/p/4b1c83d50e1a 一、两段代码: 1、/usr/zabbix/bin/disk_discovery.sh #!/bin/bash #################################################
        
阅读全文
 
    
        
        
摘要:其中,测试过用2048000的sample rate对树莓派的CPU压力最少
        
阅读全文
 
    
        
        
摘要:一台debian的服务器,在apt upgrade后,原来的mysql 5.7升级到了mairadb 10 结果,原来通过ln -s /home/test/mysql /var/lib/mysql/test链接的数据文件目录,在service mariadb restart后,一直报test数据库无
        
阅读全文
 
    
        
        
摘要:iptables -t nat -I PREROUTING -p tcp -m tcp --dport 83 -j DNAT --to-destination 192.168.1.55:443iptables -t nat -I POSTROUTING -d 192.168.1.55 -p tcp 
        
阅读全文
 
    
        
        
摘要:路由器硬件为:mt7620(铁壳) 主机型号 Lenovo Y1 固件版本 OpenWrt Designated Driver 12009 / LuCI Master (git-17.174.41033-de2e92a) 内核版本 4.4.14 当时刷机是用了snapshot版本,现在后悔死了 查了
        
阅读全文
 
    
        
        
摘要:1、发邮件给构建者 首先需要安装user build vars插件,https://wiki.jenkins.io/display/JENKINS/Build+User+Vars+Plugin 在配置项目时,须勾选:构建环境->Set jenkins user build variables 这样就
        
阅读全文
 
    
        
        
摘要:原因: 将原来openwrt上用的证书复制到centos 6.9后,客户端都连不上了,查了服务器log,出现是error=certificate signature failure错误。 处理方法见帖:https://www.centos.org/forums/viewtopic.php?t=621
        
阅读全文
 
    
        
        
摘要:1、直接返回来访IP location /ip { default_type text/plain; return 200 $remote_addr; } 2、流转发及写日志、开启websocket: log_format stream '$remote_addr ($remote_user) $t
        
阅读全文
 
    
        
        
摘要:1、如果用精简的apline或debian:stretch-slim创建的docker,里面可能没有cron模块,需要独立安装 apt-get install -y cron 2、docker里面cron不运行的情况 参照:https://www.cnblogs.com/agang-php/p/10
        
阅读全文
 
    
        
        
摘要:1、关闭HDMI输出 /opt/vc/bin/tvservice -o 2、关闭模块 vi /etc/modules #snd-bcm2835 3、关闭USB电流限制 因树莓派的USB接口电流大小由USB电流保护芯片进行限制,所以通过旁路USB电流保护芯片(即不让电流从电流保护芯片流过)就可以实现更
        
阅读全文
 
    
        
        
摘要:1、基于https://github.com/jketterl/openwebrx git clone https://github.com/jketterl/openwebrx.git 2、首先创建base image,使用的是apline系统:https://hub.docker.com/_/a
        
阅读全文