上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: - name: Install the atop and savetime 3 days and Interval 15s hosts: "{{ ip }}" vars: date: 3 gather_facts: no tasks: - name: yum atop yum: name: http 阅读全文
posted @ 2020-06-16 11:56 阿里云的奥斯卡 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 系统盘扩容growpart /dev/vda 1 resize2fs -f /dev/vda1 参考 https://support.huaweicloud.com/ecs_faq/zh-cn_topic_0078300749.html数据盘扩容 ext*:e2fsck -n 磁盘分区xfs:xfs 阅读全文
posted @ 2020-06-11 11:32 阿里云的奥斯卡 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 首先看一下服务列表里有没有这个服务: systemctl list-unit-files --type=service 如果有的话: systemctl daemon-reload 即可 阅读全文
posted @ 2020-06-09 16:19 阿里云的奥斯卡 阅读(5563) 评论(0) 推荐(0) 编辑
摘要: 连接:$ redis-cli -h host -p port -a password 认证:redis 127.0.0.1:6379> AUTH "password" OK redis 127.0.0.1:6379> PING PONG 查看慢日志参数: config get slowlog* 12 阅读全文
posted @ 2020-06-03 16:30 阿里云的奥斯卡 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Python命令: python -m SimpleHTTPServer 8000 Python代码: import SimpleHTTPServer import SocketServer class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHand 阅读全文
posted @ 2020-05-30 09:37 阿里云的奥斯卡 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: TIMEOUT BIOS密码 启动密码 变更管理 VPN 退出 ssh端口 时间同步 DB主从 限制运维窗口时间 主机基线 运维通道 运维标准 TOMCAT JAVA /opt 目录下 数据 /data下 /logs 日志 CSDN 脱库 1、严格密码和账号控制 keepass 管理密码 ldap管 阅读全文
posted @ 2020-05-29 17:15 阿里云的奥斯卡 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 脚本 #!/bin/bash /usr/bin/expect <<EOF #使用root权限来执行命令 spawn ssh ljj@localhost expect "password" send "qqq123...A\r" expect eof EOF 前提下载 yum install expe 阅读全文
posted @ 2020-05-18 15:12 阿里云的奥斯卡 阅读(408) 评论(0) 推荐(0) 编辑
摘要: response = requests.get("http://www.baidu.com") response.content.decode("utf-8") 返回bytes类型 decode解码 response.text request.encoding = "gbk" # 修改编码 返回st 阅读全文
posted @ 2020-05-05 09:55 阿里云的奥斯卡 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 前言 TCP协议,相信对于每一个开发工程师都不陌生。由于该协议是一个面向连接,可靠的特性,广泛应用于现在互联网的应用中。如常见的web,ssh,ftp等都是基于TCP协议。目前TCP协议占全网的流量达到80%,因此这也成为黑客主要攻击的类别。 TCP报文结构 一个TCP报头的标识(code bits 阅读全文
posted @ 2020-04-29 10:28 阿里云的奥斯卡 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Service 工作模式: userspace,iptables,ipvs 类型: 1. ExternalName: 用于将集群外部的服务引入到集群内部,在集群内部可直接访问来获取服务。 它的值必须是 FQDN, 此FQDN为集群内部的FQDN, 即: ServiceName.Namespace.D 阅读全文
posted @ 2020-04-29 09:57 阿里云的奥斯卡 阅读(1435) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页