随笔分类 -  linux

linux jenkins服务启动异常等,排查是否日志磁盘空间满 du df命令
摘要:linux jenkins服务启动异常等,排查是否日志磁盘空间满 du df命令 20:44:48 /root/anaconda3/lib/python3.6/site-packages/paramiko/ecdsakey.py:154: CryptographyDeprecationWarning 阅读全文
posted @ 2025-10-04 10:22 oktokeep 阅读(13) 评论(0) 推荐(0)
linux get请求文件下载接口及curl多个请求头 开发工具的思路应用
摘要:linux get请求文件下载接口及curl多个请求头 开发工具的思路应用 命令语法:curl -X GET -o output_file.txt http://example.com/api/download ‌常用选项‌: -o 指定本地文件名-H 添加请求头:curl -H "Authoriz 阅读全文
posted @ 2025-09-30 17:25 oktokeep 阅读(27) 评论(0) 推荐(0)
Linux日志搜索 grep
摘要:## -- 且的关系 --## 先过滤第一步,然后基于第一步再过滤第二步,且的关系。cat myLogFile.log | grep "6dc7e0a484d5a7cc" | grep "369698634" >> myLogFileGps-240816.log ## -- 或的关系 --## 搜索 阅读全文
posted @ 2024-09-07 15:18 oktokeep 阅读(78) 评论(1) 推荐(0)
Linux日志搜索 grep
摘要:1.关键字“或”的搜索, -E 不能少。grep -E "word1|word2|word3" file.txt满足任意条件(word1、word2和word3之一)将匹配。 2.关键字“且”的搜索grep word1 file.txt | grep word2 |grep word3必须同时满足三 阅读全文
posted @ 2023-12-21 14:36 oktokeep 阅读(71) 评论(2) 推荐(0)
linux解压缩,复制,重命名,删除,目录按更新时间排序,grep递归搜索文档
摘要:linux解压缩,复制,重命名,删除,目录按更新时间排序,grep递归搜索文档 1.解压缩压缩命令 zip -p -r mymail-1026.zip mymail/ 解压命令 unzip mymail-1026.zip 2.复制将文件file1复制到dir1目录下的file2文件 cp file1 阅读全文
posted @ 2023-10-28 09:18 oktokeep 阅读(408) 评论(0) 推荐(0)
Linux curl支持http/https方法,Curl请求示例语法
摘要:Curl请求示例curl -X GET "http://<host:port>/api/1/test/get?test=<value>&app_id=<app_id>&sign=<sign>&timestamp=<timestamp>"curl -X POST -H "Content-Type: a 阅读全文
posted @ 2022-09-26 22:55 oktokeep 阅读(3791) 评论(4) 推荐(0)
Linux chmod -bash: ./xx.sh: Permission denied的解决方案
摘要:Linux -bash: ./xx.sh: Permission denied的解决方案启动tomcat命令:./startup.sh之后提示-bash: ./startup.sh: Permission denied 原因:在Linux中,第一次启动一个新的tomcat,用户没有权限,而导致无法执 阅读全文
posted @ 2022-07-19 23:10 oktokeep 阅读(577) 评论(0) 推荐(0)
ps top命令查看内存空间
摘要:[root@VM-4-3-centos local]# ps aux --sort -rss | head USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND mysql 21247 0.0 9.6 1191444 182252 ? Sl 1 阅读全文
posted @ 2022-06-10 08:47 oktokeep 阅读(178) 评论(3) 推荐(0)
-bash: curl: command not found 卸载后重新安装
摘要:-bash: curl: command not found rpm -e --nodeps curl yum remove curl rpm -qa|grep curl yum -y install curl curl --version 阅读全文
posted @ 2022-06-10 08:41 oktokeep 阅读(1205) 评论(0) 推荐(0)
linux查看端口命令 lsof netstat
摘要:[root@VM-4-3-centos /]# lsof -i:8881COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEnode 15526 root 18u IPv6 2162203 0t0 TCP *:galaxy4d (LISTEN) [ro 阅读全文
posted @ 2022-06-03 18:05 oktokeep 阅读(199) 评论(0) 推荐(0)
linux命令汇总
摘要:1.搜索日志方法,写入文件,按搜索的字符串上下各200行返回 grep -C 200 '刷新XXX错误' FileNameOrderInfo-2020-10-14-*.log >> 201014-4.txt 2. Binary file (standard input) matches cat te 阅读全文
posted @ 2020-10-15 13:43 oktokeep 阅读(156) 评论(14) 推荐(0)