自制一键安装环境oneshell_v1.0.sh
echo install env... yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel #下载Nginx echo downloading nginx-1.18.0 wget -c https://nginx.org/download/nginx-1.18.0.tar.gz #安装 nginx echo install nginx-1.18.0 tar -zxvf nginx-1.18.0.tar.gz cd nginx-1.18.0 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-stream --with-http_gzip_static_module make &...
ELK/EFK中ES使用IK分词器的方式步骤
1. 安装ES同时安装IK 提前下载好IK分词器(版本和ES保持 一致): https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.8.0/elasticsearch-analysis-ik-6.8.0.zip 下载后,在plugins下面创建文件夹IK,把ZIP解压到IK里面 使用DOCKER启动ES: es: container_name: es image: docker.elastic.co/elasticsearch/elasticsearch:6.8.0 privileged: true ports: - "9200:9200" volumes: - ./efk/es/data:/usr/share/elasticsearch/data - ./efk/es...
kibana6.8.0禁用不用的模块
server.port: 5601 server.host: "0.0.0.0" server.name: "kibana" elasticsearch.hosts: ["http://es:9200"] elasticsearch.ssl.verificationMode: none #elasticsearch.ssl.certificateAuthorities: ["/data/kibana/config/newfile.crt.pem"] elasticsearch.preserveHost: true kibana.index: ".kibana" i18n.locale: "en" server.defaultRoute: "/app/kibana#/discover" elasticsearch.username: "elastic" elasticsearch.password: "xxxxxxxxxxxxxxxxx" # 禁用可视化和仪表板 xpack.monitori...
adGuardHome自定义规则
||example.org^ – 拦截 example.org 域名及其所有子域名 @@||example.org^ – 放行 example.org 及其所有子域名 127.0.0.1 example.org – AdGuard Home 现在将会把 example.org(但不包括它的子域名)解析到 127.0.0.1。 ! 这是一行注释 – 只是一条注释 # 这也是一行注释 – 只是一条注释 /REGEX/ – 阻止访问与example_regex_meaning匹配的域 参考:sub.adtchrome.com/adt-chinalist-easylist.txt
vue/react/node/vite/npm/yarn build自动更新版本号
//根目录 创建 version.js //安装 dayjs 或者 momentjs //修改package.json中build script为: node version.js & vite build //version.js如下: import fs from "fs"; import dayjs from "dayjs"; const getPackageJson = () => { let data = fs.readFileSync('./package.json') //fs读取文件 return JSON.parse(data) //转换为json对象 } let packageData = getPackageJson() packageData.version = dayjs().format('YYYYMMDDHHmm'); fs.writeFile( './package.j...