常用查询命令汇总:集群健康度:curl http://127.0.0.1:9200/_cat/health?v -u elastic:elastic节点情况:curl http://127.0.0.1:9200/_cat/nodes?v -u elastic:elastic红色索引:curl http://127.0.0.1:9200/_cat/indices?v -u elastic:elastic | grep -w "red"磁盘占用情况:curl http://127.0.0.1:9200/_cat/allocation?v -u elastic:elastic如果有分片是unassigned,可以执行以下指令:curl -u elastic:elastic http://127.0.0.1:9200/_cluster/allocation/explaincurl -u elastic:elastic http://127.0.0.1:9200/_cluster/reroutecurl -H "Content-Type: application/json" -XPOST 'h
curl命令查看响应时间curl -w "%{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}" "\n" 参数含义 time_namelookupDNS解析域名时间 time_connectTCP连接的时间,三次握手的时间 time_starttransfer从请求开始到第一个字节将要传输的时间 time_total总时间 speed_download下载速度,单位-字节每秒 time_appconnectSSL|SSH等上层连接建立的时间 time_pretransfer从请求开始到响应开始传输的时间 time_redirect从开始到最后一个请求事务的时间 例如:curl -w "%{time_namelookup}--%{time_connect}--%{time_starttransfer}--%{time_total}" "http://localhost:19092/seller"curl -o "%{time_
nginx中配置proxy_pass一般是形如这样:location /proxy {proxy_pass http://xxxx.com/;}这里面有几种情况,比如location后面是否带 / ,或者proxy_pass后面是否带 / ,下面分情况试验下:第一种:location /proxy {proxy_pass http://xxxx.com;}跳转到:http://xxxx.com/index.html;第二种:location /proxy {proxy_pass http://xxxx.com/;}跳转到:http://xxxx.com/index.html;第三种:location /proxy/ {proxy_pass http://xxxx.com;}跳转到:http://xxxx.com/proxy/index.html;第四种:location /proxy/ {proxy_pass http://xxxx.com/;}跳转到:http://xxxx.com/index.html;第五种:location /proxy/ {proxy_pass http://
scp -P 22622 elasticsearch-6.8.2.tar.gz root@192.168.110.121:/opt在两台服务器之间进行scp的时候,突然报错了。。现象:which scp有显示:/usr/bin/scp但是scp指令输入密码后报错:root@192.168.110.121's password:bash: scp: command not foundlost connection最后找到了问题:两台服务器都需要安装yum install openssh-clients客户端和 server端都需要安装这个包
强缓存与协商缓存概念:如何配置强缓存:server {listen 80; server_name tirion.me www.tirion.me; # note that these lines are originally from the "location /" block root /home/www/wordpress; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fas
康叔的AI全栈工坊
Code for Life, AI for Future