- 浏览: 34352 次
最新评论
文章列表
chrome://flags/#unsafely-treat-insecure-origin-as-secure
https://blog.csdn.net/yunzhonghefei/article/details/120290541
https://www.jianshu.com/p/58a0d4421313
DB_USERNAME=root
DB_PASSWORD=123456
select=`mysql -u$DB_USERNAME -p$DB_PASSWORD -N -e "SELECT id, time, info FROM information_schema.processlist WHERE command = 'query' AND time > 20 ORDER BY time DESC"`
echo ====================$(date +%F%n%T) start====================
# [01 ...
创建目录
mkdir -p /home/docker/haproxy
mkdir -p /home/data/haproxy
cd /home/docker/haproxy
vi docker-compose.yml
配置文件
haproxy:
image: haproxy
container_name: haproxy
volumes:
- /home/data/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
ports:
- 6789:6789
- 4567:4567
...
Docker
docker-compose.yml
services:
elasticsearch:
image: openzipkin/zipkin-elasticsearch7
container_name: elasticsearch
ports:
- 9200:9200
zipkin:
image: openzipkin/zipkin-slim
container_name: zipkin
environment:
- STORAGE_TYPE=elasticsearch
...
const aws = require('aws-sdk');
const s3 = new aws.S3({ apiVersion: '2006-03-01' });
exports.handler = async (event) => {
const {path1, path2, filename, suffix} = /\/(?<path1>.{4}).*\/(?<path2>\d{4}).*\/(?<filename>\d{22}).*(?<suffix>\..{3})/.exec(event.rawPath).group ...
./ParseHeapDump.sh ../dump.hprof org.eclipse.mat.api:suspects org.eclipse.mat.api:overview org.eclipse.mat.api:top_component
加密数据库
service mysql stop
mv /home/data/mysql/data/bessky_pii /home/backup/bessky_pii
encfs -o allow_other /home/data/mysql/data/.bessky_pii /home/data/mysql/data/bessky_pii
cp /home/backup/bessky_pii/* /home/data/mysql/data/bessky_pii
chown -R mysql:mysql /home/data/mysql/data/bessky_pii
service mysq ...
依赖
<dependency>
<groupId>dk.dren</groupId>
<artifactId>hunspell</artifactId>
<version>1.3.2</version>
</dependency>
源码
https://github.com/dren-dk/HunspellJNA
字典
https://www.elastic.co/guide/cn/elasticsearch/guide/current/hunspell.html
参考
https://b ...
docker run -d -p 3306:3306 -e MYSQL_DATABASE="bessky_zabbix" -e MYSQL_USER="bessky_zabbix" -e MYSQL_PASSWORD="123456" -e MYSQL_ROOT_PASSWORD="123456" --name zabbix_mysql mysql:8.0.28 --character-set-server=utf8 --collation-server=utf8_bin --default-authenticati ...
测试硬盘写入速度
dd if=/dev/zero bs=8k count=300000 of=test.file
测试硬盘读取速度
dd if=test.file bs=8k count=300000 of=/dev/null
mkdir -p /home/data/milvus/conf
cd /home/data/milvus/conf
wget https://raw.githubusercontent.com/milvus-io/milvus/v1.0.0/core/conf/demo/server_config.yaml
docker run -d --name milvus \
-p 19530:19530 \
-p 19121:19121 \
-v /home/data/milvus/db:/var/lib/milvus/db \
-v /home/data/milvus/conf:/var/lib/m ...
vi /etc/security/limits.conf
添加四行
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
重启终端
ulimit -n
vi /etc/sysctl.conf
添加一行
vm.max_map_count=655360
sysctl -p
vi /etc/security/limits.d/20-nproc.conf
星号表示普通用户
* soft nproc 65535
root soft nproc ...
查看连接数
nsenter -t `docker inspect -f {{.State.Pid}} dockername` -n ss -an
nsenter -t `docker inspect -f {{.State.Pid}} bessky-store-service` -n ss -an | grep 6379
nsenter -t `docker inspect -f {{.State.Pid}} bessky-store-service` -n ss -an | grep 6379 | wc -l
nsenter -t `docker inspect -f {{.State.Pid ...
拉取镜像
docker pull nginx
简单测试
docker run -d -p 80:80 --name nginx nginx
配置测试
docker run -d -p 80:80 -v /home/nginx/nginx.conf:/etc/nginx/nginx.conf --name nginx nginx
配置文件
user root;
worker_processes 8;
worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-cas</artifactI ...