随笔分类 -  linux

linux相关文档
摘要:system管理kafka[root@ajsh-dev006 systemd]# cat /usr/lib/systemd/system/kafka.service [Unit] Description=kafka [Service] User=root LimitNOFILE=65535 LimitNPROC=65535 阅读全文
posted @ 2023-02-25 14:48 安生丶 阅读(62) 评论(0) 推荐(0) 编辑
摘要:linux-路由追踪[root@master deployment]# yum -y install mtr [root@master deployment]# mtr 36.134.8.76 My traceroute [v0.85] master (0.0.0.0) Tue Dec 6 15:46:38 2022 阅读全文
posted @ 2023-02-25 14:46 安生丶 阅读(29) 评论(0) 推荐(0) 编辑
摘要:普通用户被锁定解决办法普通用户被锁定 查看所有用户的尝试失败登录次数 [root@mysql-master pam.d]# faillock 只查看admin用户 [root@mysql-master pam.d]# faillock --user admin 解锁一个用户账户 [root@mysql-master pa 阅读全文
posted @ 2022-11-14 11:17 安生丶 阅读(67) 评论(0) 推荐(0) 编辑
摘要:更改普通用户密码过期时间更改普通用户密码过期时间 解决: 先查看密码过期时间,现在是已经过期了 [root@lecode-pro-master ~]# chage -l lecode Last password change : Aug 16, 2022 Password expires : Nov 14, 2022 Pa 阅读全文
posted @ 2022-11-14 11:17 安生丶 阅读(191) 评论(0) 推荐(0) 编辑
摘要:linux如何删除多余网卡ifconfig tunl0 down ip link delete tunl0 阅读全文
posted @ 2022-11-02 10:23 安生丶 阅读(316) 评论(0) 推荐(0) 编辑
摘要:检查域名证书到期时间脚本[root@small-node2 ~]# cat check-yuming-time.sh #!/bin/bash ################ Version Info ################## # Create Date: 2022-10-14 # Author: Anshen 阅读全文
posted @ 2022-11-02 10:14 安生丶 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 对某列(行)数字求和[root@small-master ~]# kubectl get po -A -o wide |grep Running |awk '{print $5}' 0 0 0 0 0 1 2 0 1 1 1 2 1 0 1 2 [root@small-master ~]# kubectl get po 阅读全文
posted @ 2022-11-02 10:13 安生丶 阅读(21) 评论(0) 推荐(0) 编辑
摘要:linux如何修改dns#修改dns: [root@iZap201hv2fcgry1alvbznZ ~]# vim /etc/resolv.conf #添加此格式的dns nameserver 114.114.114.114 不用任何操作立即生效,重启后失效 阅读全文
posted @ 2022-11-02 10:10 安生丶 阅读(36) 评论(0) 推荐(0) 编辑
摘要:查看服务器出口ip[root@iZap201hv2fcgry1alvbznZ ~]# curl cip.cc IP : xxx.xxx.xx.xx 地址 : 中国 浙江 绍兴 运营商 : 移动 数据二 : 浙江省绍兴市 | 移动 数据三 : 中国浙江省绍兴市 | 移动 URL : http://www.cip.cc/ 阅读全文
posted @ 2022-11-02 10:09 安生丶 阅读(56) 评论(0) 推荐(0) 编辑
摘要:如何验证接口可用性root@master:~# curl -X POST -H "Content-type: application/json" -d "{\"bizCode\": \"SLb6a98\",\"code\": \"330821194812082874\", \"codeType\": \"idCard 阅读全文
posted @ 2022-11-02 10:07 安生丶 阅读(50) 评论(0) 推荐(0) 编辑

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