随笔分类 -  Linux

摘要:命令如下: curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http[s]://<加速域名 阅读全文
posted @ 2024-07-08 21:14 lucky_tomato 阅读(68) 评论(0) 推荐(0) 编辑
摘要:# 在根目录创建分区路径 mkdir -p /swap/ # 设置分区的大小 # bs=64M是块大小,count=64是块数量,所以swap空间大小是bs*count=4096MB=4GB dd if=/dev/zero of=/swap/swap0 bs=64M count=64 # 设置该目录 阅读全文
posted @ 2024-05-09 13:28 lucky_tomato 阅读(6) 评论(0) 推荐(0) 编辑
摘要:curl -u "username:password" -X DELETE url路径 阅读全文
posted @ 2024-03-22 08:03 lucky_tomato 阅读(266) 评论(0) 推荐(0) 编辑
摘要:比如:https://xxx/test/abc/cat.jpg?userid=user1&auth=123 按顺序匹配,首先尝试读取$uri,这里的uri是指/test/abc/cat.jpg,尝试去当前工作目录下的/test/abc/目录读取这个cat.jpg的静态文件, 发现没有,就去匹配第2个 阅读全文
posted @ 2024-02-22 00:08 lucky_tomato 阅读(191) 评论(0) 推荐(0) 编辑
摘要:curl -I -o /dev/null -s -w %{http_code} http://domain 阅读全文
posted @ 2024-02-21 22:29 lucky_tomato 阅读(72) 评论(0) 推荐(0) 编辑
摘要:find /date/ -type f -name "*.txt" -exec cp {} /tmp \; ind /date/ -type f -name "*.txt" | xargs cp -t /tmp 阅读全文
posted @ 2024-02-21 22:19 lucky_tomato 阅读(39) 评论(0) 推荐(0) 编辑
摘要:grep -A n "keyword" filename #显示匹配到的之后n行内容 grep -B n "keyword" filename #显示匹配到的之前n行内容 grep -C n "keyword" filename #显示匹配到的前后n行内容 阅读全文
posted @ 2024-02-21 22:05 lucky_tomato 阅读(1472) 评论(0) 推荐(1) 编辑
摘要:解决办法加-a grep -a "XXXXX" xxxx.file 阅读全文
posted @ 2024-02-19 23:20 lucky_tomato 阅读(5) 评论(0) 推荐(0) 编辑
摘要:dnf install postfix s-nail systemctl start postfix systemctl stop postfix 需要修改 vim /etc/postfix/main.cf inet_interfaces = 127.0.0.1 阅读全文
posted @ 2024-02-19 22:56 lucky_tomato 阅读(35) 评论(0) 推荐(0) 编辑
摘要:[root@node02 22:47:39~]# redis-cli 127.0.0.1:6379> ping (error) NOAUTH Authentication required. #没验证 127.0.0.1:6379> 127.0.0.1:6379> AUTH 1234 OK 127. 阅读全文
posted @ 2024-01-08 22:51 lucky_tomato 阅读(50) 评论(0) 推荐(0) 编辑
摘要:curl cip.cc 阅读全文
posted @ 2023-08-11 11:43 lucky_tomato 阅读(29) 评论(0) 推荐(0) 编辑
摘要:前言:某天线上一台机器在触发流量告警,需要排查异常进程,使用iftop命令进行检查 yum install iftop -y 1、执行iftop -nNP命令会出现以下界面 界面说明: =>代表发送数据 <=代表接收数据 TX:发送流量 RX:接收流量 TOTAL:总流量 Cumm:运行iftop到 阅读全文
posted @ 2022-11-28 15:15 lucky_tomato 阅读(1209) 评论(0) 推荐(0) 编辑
摘要:dig @223.5.5.5 www.domain.com txt +short 阅读全文
posted @ 2022-10-13 20:43 lucky_tomato 阅读(248) 评论(0) 推荐(0) 编辑
摘要:下面是http请求过程 curl -v http://www.boyblue.xyz * About to connect() to www.boyblue.xyz port 80 (#0) * Trying 192.168.1.28... * Connected to www.boyblue.xy 阅读全文
posted @ 2022-10-06 09:15 lucky_tomato 阅读(151) 评论(0) 推荐(0) 编辑
摘要:问题:脚本正常执行没有问题,但是cron运行报错,没有环境变量导致 解决办法:可以在计划任务里面添加. /etc/profile;如下 * * * * * . /etc/profile;bash tset.sh 阅读全文
posted @ 2022-09-27 17:05 lucky_tomato 阅读(30) 评论(0) 推荐(0) 编辑
摘要:https://cloud.tencent.com/api 阅读全文
posted @ 2022-09-26 11:03 lucky_tomato 阅读(44) 评论(0) 推荐(0) 编辑
摘要:php -m 阅读全文
posted @ 2022-09-23 21:29 lucky_tomato 阅读(16) 评论(0) 推荐(0) 编辑
摘要:curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download} www.baidu.com 0.005::0.005::0.006 阅读全文
posted @ 2022-09-19 22:11 lucky_tomato 阅读(216) 评论(0) 推荐(0) 编辑
摘要:删除redis指定分组 用法: redis-cli -h redis实例连接地址 -n 库 -a 密码 keys "要删除的[key]*" | xargs redis-cli -h redis实例连接地址 -n 库 -a 密码 del 如果不确定是否匹配成功就先重定向到文件,查看文件内容 redis 阅读全文
posted @ 2022-09-19 20:00 lucky_tomato 阅读(332) 评论(0) 推荐(0) 编辑
摘要:root:PRIMARY> db.currentOp() { "inprog" : [ { "opid" : 6222, #进程号 "active" : true, #是否活动状态 "secs_running" : 3,#操作运行了多少秒 "microsecs_running" : NumberLo 阅读全文
posted @ 2022-06-09 00:21 lucky_tomato 阅读(581) 评论(0) 推荐(0) 编辑

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