摘要: // 同步转发并且比对响应结果 cd /production/www/go_replay/ ulimit -n 65000 /usr/local/bin/gor --input-raw :80 --input-raw-track-response --input-raw-bpf-filter "ho 阅读全文
posted @ 2021-08-24 11:31 ma_fighting 阅读(389) 评论(1) 推荐(0) 编辑
摘要: // es 查询指定 aid 的 一篇文章 curl -XPOST '192.168.0.2:9200/ass_cqmzvcn_all/_search?pretty' -d ' { "query": { "match": {"aid":"9CaKrnK6RoU"} }, "size": 1 }' - 阅读全文
posted @ 2021-08-24 11:18 ma_fighting 阅读(647) 评论(0) 推荐(0) 编辑
摘要: yum install epel-release yum install -y supervisor systemctl enable supervisord # 开机自启动 systemctl start supervisord # 启动supervisord服务 阅读全文
posted @ 2021-08-24 11:12 ma_fighting 阅读(59) 评论(0) 推荐(0) 编辑
摘要: yum install -y gcc gcc-c++ ncurses-devel make wget wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz tar zxvf nload-0.7.4.tar.gz cd nload-0.7. 阅读全文
posted @ 2021-08-24 11:10 ma_fighting 阅读(514) 评论(0) 推荐(0) 编辑
摘要: cd /etc/yum.repos.d/ wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo yum install fish 阅读全文
posted @ 2021-08-24 11:09 ma_fighting 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 读库导出部分文章数据(慎用 会有🔐): mysqldump -uass_dev -h192.168.6.246 -t ass_cxxxxxx article -pxxxxxxx "--where=ctime>1629356030002" >/root/article.sql 阅读全文
posted @ 2021-08-24 11:08 ma_fighting 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 安装 1、装依赖 yum install -y java-1.8.0-openjdk 2、安装elasticsearch 下载url:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.3.tar.gz #目录 阅读全文
posted @ 2021-07-28 12:58 ma_fighting 阅读(376) 评论(0) 推荐(0) 编辑
摘要: use crossbeam_channel::{Receiver, bounded}; use tokio::time::{Duration, delay_for}; #[tokio::main] async fn main() { let (s, r) = bounded(10); for i i 阅读全文
posted @ 2021-07-19 13:42 ma_fighting 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Board 引用 自己也可以, 不过 内部 Board 要 Arc 或 Box 包裹. 阅读全文
posted @ 2021-01-23 18:37 ma_fighting 阅读(284) 评论(0) 推荐(0) 编辑
摘要: du -h --max-depth=1 Linux du命令也是查看使用空间的,但是与df命令不同的是Linux du命令是对文件和目录磁盘使用的空间的查看,还是和df命令有一些区别的. 1.命令格式: du [选项][文件] 2.命令功能: 显示每个文件和目录的磁盘使用空间。 3.命令参数: -a 阅读全文
posted @ 2021-01-20 10:41 ma_fighting 阅读(815) 评论(0) 推荐(0) 编辑