常用shell脚本

curl_test.sh#!/bin/bash# crontab设置每分钟执行# */1 * * * * sh /opt/curl_test.shstep=10 #间隔秒数for((i=0;i<60;i=(i+step)));do status_code=$(curl -s -o /dev/
2023年01月31日 440次浏览

服务器备份工具:Rsnapshot

服务器备份工具:Rsnapshot一、安装 yum install -y epel-release yum install -y rsnapshot rsync二、使用1. 说明服务器192.168.1.101备份机192.168.1.1212. 备份机ssh-keygenssh-copy-id r
2022年11月16日 503次浏览

Squid正向代理搭建

一、安装1.安装squidyum -y install squid2.修改内核参数,打开ip转发vi /etc/sysctl.confnet.ipv4.ip_forward = 1使内核参数修改生效sysctl -p二、配置
2022年09月29日 500次浏览

Java事件驱动编程

说明事件监听(也叫事件驱动)是观察者模式的一种实现,只要是观察者模式,就含有主题(针对该主题的事件),发布者(发布主题或事件),订阅者(监听主题的人)。有三个部分组成,事件(ApplicationEvent)、监听器(ApplicationListener)和事件发布操作。使用事件机制我们可以将相互
2022年09月26日 612次浏览

es转储工具elasticdump

elasticsearch 2022年09月25日 777次浏览

Graylog安装配置

1. 日志输入配置2. 索引滚动删除策略System / Indices / Default index set / Edit
日志 2022年09月25日 609次浏览

iptables规则

# 禁用所有出去的网络iptables -P OUTPUT DROP# 允许部分出去的网络iptables -A OUTPUT -d 192.168.123.0/24 -j ACCEPT# 允许外网#iptables -P OUTPUT ACCEP
2022年09月13日 499次浏览

WebSSH-开源web端ssh连接终端

2022年09月08日 489次浏览

Centos安装nfs服务

一、服务端安装配置1.安装并启动服务yum install -y nfs-utils rpcbindsystemctl start rpcbindsystemctl enable rpcbindsystemctl start nfs-serversystemctl enable nfs-server
2022年06月13日 555次浏览

Centos7安装MySQL5.7

1. 安装包下载下载网址:https://dev.mysql.com/downloads/mysql/5.7.htmlRed Hat Enterprise Linux 7 / Oracle Linux 7 (x86, 64-bit), RPM Bundlemysql-5.7.31-1.el7.x86
MySQL 2022年06月10日 817次浏览