使用Linux的systemd运行jar包

服务定义文件vi /lib/systemd/system/[APP_NAME].service[Unit]Description=[APP_NAME][Service]WorkingDirectory=/optPrivateTmp=trueRestart=alwaysType=simpleExecS
2023年03月07日 20次浏览

nginx编译相关配置

# https# tcp转发./configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream
Nginx 负载均衡 2023年02月23日 32次浏览

docker运行单节点kafka

docker network create -d bridge dev-kafkadocker run -d --name dev-zookeeper-server --network dev-kafka -e ALLOW_ANONYMOUS_LOGIN=yes bitnami/zookeeper:
Kafka 2023年02月23日 29次浏览

k8s安装kubernetes-dashboard

1. 下载yaml文件wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.2/aio/deploy/recommended.yamlkubectl apply -f recommended.yaml文件内容
2023年02月16日 37次浏览

shell脚本检测http服务可用性

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日 35次浏览

服务器备份工具: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日 94次浏览

Squid正向代理搭建

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

Java事件驱动编程

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

es转储工具elasticdump

elasticsearch 2022年09月25日 168次浏览

Graylog安装配置

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