08 2021 档案

摘要:不能放到location外(全局),会造成重定向死循环 放到location内,因为是同一域名会造成部分uri一起重定向造成页面显示不正常。 加了访问绝对路径 / 同时判断user_agent 为手机 才重定向 第二个location 也是为了死循环 location / { set $a 1; s 阅读全文
posted @ 2021-08-31 18:07 风儿飘 阅读(255) 评论(0) 推荐(0) 编辑
摘要:用iptables防火墙iptables -F# 允许包从22端口进入iptables -A INPUT -p tcp --dport 22 -j ACCEPT# 允许从22端口进入的包返回iptables -A OUTPUT -p tcp --sport 22 -m state --state E 阅读全文
posted @ 2021-08-31 13:45 风儿飘 阅读(33) 评论(0) 推荐(0) 编辑
摘要:批量删 配置文件:action.destructive_requires_name true(不能批量删除) false(可以批量删) DATA=`date -d "2 week ago" +%Y.%m.%d` curl --user elastic:pass -XDELETE http://IP: 阅读全文
posted @ 2021-08-30 11:44 风儿飘 阅读(3938) 评论(0) 推荐(0) 编辑
摘要:添加index patterns; test 是索引收集的日志处理后的列表 while read line;docurl --user elastic:xxxxx -X POST IP:5601/api/saved_objects/index-pattern/${line} -H 'kbn-xsrf 阅读全文
posted @ 2021-08-30 11:41 风儿飘 阅读(1014) 评论(0) 推荐(0) 编辑
摘要:第一次make 报错 安装gcc yum -y install gcc gcc-c++ libstdc++-devel 再次make 报错 解决办法: 清理上次编译残留文件,重新编译 make distclean && make 阅读全文
posted @ 2021-08-10 15:30 风儿飘 阅读(141) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示