上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: [root@Gin scripts]# dig www.cnblogs.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6 <<>> www.cnblogs.com ;; global options: +cmd ##Dig的部分输出告诉我们一些有关于 阅读全文
posted @ 2020-09-16 11:32 chengxuyonghu 阅读(226) 评论(0) 推荐(0)
摘要: DNS 域名解析原理 域名解析过程 1.在浏览器中输入www.qq.com域名,操作系统会先检查自己本地的hosts文件是否有这个网址映射关系,如果有,就先调用这个IP地址映射,完成域名解析。 2.如果hosts里没有这个域名的映射,则查找本地DNS解析器缓存,是否有这个网址映射关系,如果有,直接返 阅读全文
posted @ 2020-09-14 10:55 chengxuyonghu 阅读(1650) 评论(0) 推荐(0)
摘要: 由于传统的磁盘管理不能对磁盘进行磁盘管理,因此诞生了LVM技术,LVM技术最大的特点就是对磁盘进行动态管理。 由于LVM的逻辑卷的大小更改可以进行动态调整,且不会出现丢失数据的情况。 一、LVM基本属于介绍 物理存储介质(The physical media) 这里指系统的存储设备:硬盘,如:/de 阅读全文
posted @ 2020-09-11 16:43 chengxuyonghu 阅读(516) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- import paramiko import threading def run(host_ip, username, password, command): ssh = paramiko.SSHClient() try: ssh.set_missin 阅读全文
posted @ 2020-09-09 15:00 chengxuyonghu 阅读(3186) 评论(0) 推荐(0)
摘要: #!/usr/bin/python # coding=utf-8 import paramiko import re class ssh_test(): def __init__(self,host,passwd,username): self.pwd = passwd self.name = us 阅读全文
posted @ 2020-09-09 11:11 chengxuyonghu 阅读(530) 评论(0) 推荐(0)
摘要: 1、安装paramiko模块 pip install paramiko 可以修改ssh连接超时时间,windows下路径:在安装路径Python\Python36\Lib\site-packages\paramiko\transport.py,修改self.banner_timeout = 60(设 阅读全文
posted @ 2020-09-09 10:39 chengxuyonghu 阅读(8159) 评论(0) 推荐(0)
摘要: 在python中,glob模块是用来查找匹配的文件的 ,在查找的条件中,需要用到Unix shell中的匹配规则: * : 匹配所所有 ? : 匹配一个字符 *.* : 匹配如:[hello.txt,cat.xls,xxx234s.doc] ?.* : 匹配如:[1.txt,h.py] ?.gif 阅读全文
posted @ 2020-09-07 15:39 chengxuyonghu 阅读(433) 评论(0) 推荐(0)
摘要: HADR是high availability disaster recovery的简写。组成HADR,需要一对机器(DB2并没有支持多个从机,是因为这样会给系统的管理带来很大麻烦),一个主机(primary),一个从机(secondary)。 1.数据库版本必须一致,此例为8.2ese 2.运行db 阅读全文
posted @ 2020-09-07 14:37 chengxuyonghu 阅读(2081) 评论(0) 推荐(0)
摘要: 1 常用的命令 CPU Memory Disk Network 标准UNIX命令(包括HP、SUN等) vmstat, sar, ps vmstat, ps iostat, sar, vmstat, netstat, nfsstat AIX 详细输出 tprof svmon, rmss filemo 阅读全文
posted @ 2020-09-07 09:31 chengxuyonghu 阅读(631) 评论(0) 推荐(0)
摘要: 下面就一一介绍一下内置函数的用法: 下面就一一介绍一下内置函数的用法: 1、abs() 返回一个数值的绝对值,可以是整数或浮点数等。 print(abs(-18)) print(abs(0.15)) result: 18 0.15 2、all(iterable) 如果iterable的所有元素不为0 阅读全文
posted @ 2020-09-05 23:00 chengxuyonghu 阅读(168) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页