nginx_ngx_replace_filter模块
replace_filter模块 https://github.com/openresty/replace-filter-nginx-module 功能:响应正文中的流式正则表达式替换 模块: replace-filter-nginx-module 指令: replace_filter <regex> <replace> replace_filter &l...
replace_filter模块 https://github.com/openresty/replace-filter-nginx-module 功能:响应正文中的流式正则表达式替换 模块: replace-filter-nginx-module 指令: replace_filter <regex> <replace> replace_filter &l...
1.交换分区: dd if=/dev/zero of=/root/bin/swapfile bs=1024 count=2048k mkswap /root/bin/swapfile UUID=04e19a64-ea9c-4043-9266-f1dc442cae65 swapon /root/bin/swapfile swapon: /root/bin/swapfile: insec...
自己设置 [mysqld] # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M datadir=/data/mysql_data socket=/data/mysql_data/mysql.sock symbolic-links=0 log-error=/data/mysql_data...
#!/bin/bash # ============================================== # 获取所有正在运行进程的(除系统进程外) # 输出: 路径|所有pid # ============================================== fileinfo_tmp=$( ls -l /proc/*/cwd 2>/dev/nul...
docker-compose.yaml version: "3" services: elasticsearch-test: hostname: elasticsearch-test image: elasticsearch:7.6.1 restart: always ports: - 9300:9200 volumes: ...
Python读写文件 1. open 简单使用: f = open('/Users/michael/test.txt', 'w') print("Hello world", file=f) f.write('Hello, world!') f.close() 复杂加变量: f = open("/tmp/fengyl/data_completion_state_"+match_scrip...
设置默认界面 第一步 第二步 第三步
下载源码 https://www.python.org/ftp/python/3.6.5/ https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz 安装依赖 yum -y install zlib zlib-devel bzip2 bzip2-devel ncurses openssl openssl-devel openssl-...
PrometteusAPI官方详解 Prometheus HTTP API 查询 查询当前prometheus健康状态 curl -X GET http://localhost:9090/-/healthy 查询时序数据库当前的基数统计信息: curl -s http://localhost:9090/api/v1/status/tsdb | jq ...
部署 docker-compose.yml version: '3.8' mysql_exporter: image: quay.io/prometheus/mysqld-exporter container_name: mysql-exporter hostname: mysql-exporter restart: always ports: ...