会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
vae_test_yu
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2021年12月21日
docker 部署Prometheus(普罗米修斯)
摘要: 1.docker拉取安装包 docker pull prom/node-exporter docker pull prom/prometheus docker pull grafana/grafana 2.启动node-exporter docker run -d -p 19100:9100 \ -
阅读全文
posted @ 2021-12-21 13:26 test_yu
阅读(2765)
评论(0)
推荐(0)
2021年12月16日
获取服务器负载均衡cpu内存
摘要: # -*- coding:utf-8 -*- - import os, time last_worktime=0 last_idletime=0 def get_cpu(): global last_worktime, last_idletime f=open("/proc/stat","r") l
阅读全文
posted @ 2021-12-16 15:42 test_yu
阅读(66)
评论(0)
推荐(0)
实时获取服务器cpu、内存使用情况
摘要: #pip install psutil import psutil import os,datetime,time def getMemCpu(): data = psutil.virtual_memory() total = data.total #总内存,单位为byte free = data.
阅读全文
posted @ 2021-12-16 15:40 test_yu
阅读(151)
评论(0)
推荐(0)
2021年12月15日
忘记svn地址,找回密码
摘要: C:\Users\Administrator\AppData\Roaming\Subversion\auth\svn.simple Administrator为你的用户名 AppData这个文件夹是隐藏的,需要显示隐藏文件 下载这个软件,放到上面的文件夹目录: C:\Users\Administra
阅读全文
posted @ 2021-12-15 17:51 test_yu
阅读(207)
评论(0)
推荐(0)
2021年11月26日
nmap扫描网段端口
摘要: #扫段ip段端口 nmap -sS -p 6379 -oG- 172.30.154.0/24 | grep open # 扫段ip段端口,并写入文件 nmap -sS -p 6379 -oG- 172.30.154.0/24 > /home/1.txt
阅读全文
posted @ 2021-11-26 18:47 test_yu
阅读(508)
评论(0)
推荐(0)
2021年11月25日
卸载rpm
摘要: 首先通过 rpm -q <关键字> 可以查询到rpm包的名字 然后 调用 rpm -e <包的名字> 删除特定rpm包 如果遇到依赖,无法删除,使用 rpm -e --nodeps <包的名字> 不检查依赖,直接删除rpm包 如果恰好有多个包叫同样的名字,使用 rpm -e --allmatches
阅读全文
posted @ 2021-11-25 13:59 test_yu
阅读(198)
评论(0)
推荐(0)
centos防火墙设置通行策略
摘要: 允许address访问本机6377端口 firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="10.10.202.140" port protocol="tcp" port="6377" accept
阅读全文
posted @ 2021-11-25 13:53 test_yu
阅读(130)
评论(0)
推荐(0)
redis配置
摘要: 1.修改 redis.conf 文件,禁用远程修改 DB 文件地址 rename-command FLUSHALL ""rename-command CONFIG ""rename-command EVAL "" 2.创建redis用户组,使用redis用户登录 groupadd redisuser
阅读全文
posted @ 2021-11-25 13:47 test_yu
阅读(197)
评论(0)
推荐(0)
centos使用root登录提示ACCESS DENIED&&使用秘钥跳转登录
摘要: 用root用户在putty上远程连接linux提示ACCESS DENIED,或用xshell连接提示SSH服务器拒绝了密码,但用其它用户又可以连接.那是因为sshd的设置不允许root用户用密码远程登录的原因,只需要服务器上修改一下即可 使用秘钥跳转登录 秘钥权限设置600 chmod 600 秘
阅读全文
posted @ 2021-11-25 13:40 test_yu
阅读(2355)
评论(0)
推荐(0)
批量删除rabbitmq队列
摘要: 1、在启用了 rabbitmq management plugin 之后,可以通过 http://IP:15672/cli/ 下载 rabbitmqadmin shell 文件,linux/windows都可用curl,如下: ##下载文件 sudo curl http://IP:15672/cli
阅读全文
posted @ 2021-11-25 13:29 test_yu
阅读(565)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告