05 2020 档案
摘要:Python命令: python -m SimpleHTTPServer 8000 Python代码: import SimpleHTTPServer import SocketServer class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHand
阅读全文
摘要:TIMEOUT BIOS密码 启动密码 变更管理 VPN 退出 ssh端口 时间同步 DB主从 限制运维窗口时间 主机基线 运维通道 运维标准 TOMCAT JAVA /opt 目录下 数据 /data下 /logs 日志 CSDN 脱库 1、严格密码和账号控制 keepass 管理密码 ldap管
阅读全文
摘要:脚本 #!/bin/bash /usr/bin/expect <<EOF #使用root权限来执行命令 spawn ssh ljj@localhost expect "password" send "qqq123...A\r" expect eof EOF 前提下载 yum install expe
阅读全文
摘要:response = requests.get("http://www.baidu.com") response.content.decode("utf-8") 返回bytes类型 decode解码 response.text request.encoding = "gbk" # 修改编码 返回st
阅读全文

浙公网安备 33010602011771号