- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 sersync安装
服务端:10.0.4.231客户端:10.0.4.232客户端配置:安装rsyncyum install -y rsynccat >/etc/rsyncd.conf<<EOFtransfer logging = yeslog file = /var/log/rsyncd.logpid file = /var/run/rsyncd.pidlock file = /var/run/rsyncd.lockport = 873address = 10.0.4.232
2022-01-26 10:58:03
1877
原创 yum源及rpm下载的一些网站
镜像1.https://mirrors.tuna.tsinghua.edu.cn/2.https://mirrors.ustc.edu.cn/3.https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/3.6/x86_64/RPMS/ ##mongo4.http://mirrors.sohu.com/5.https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/ ##rabbitmq
2021-11-09 20:49:18
3646
原创 记一次安装ansible导致内网跳板机不可用
记一次ansible升级导致内网跳板机不可用内网的跳板机程序是python程序运行的,之前不知道,在堡垒机服务器上也未查看是否有ansible服务就直接使用yum安装了ansible,yum安装的ansible版本为2.9跳板机的代码很老了,很多导入的包新版的ansible都不支持或者已经取消了,所以当时跳板机无法登录,一直报错。当时搜到的是ansible2.4之后某些模块的导入方法发生了改变,导致堡垒机脚本不可用。然后就想着把ansible的版本回退到2.4之下,登录以下网址下载ansible
2021-06-23 14:35:41
407
原创 元祖基础
#元祖与列表基本上是一样的,只是元祖不可变,列表可以改变tuple=(10,20,30,'abc','123',[1,2,3])print(len(tuple))#6print(10 in tuple)#Trueprint(tuple[2])#30print(tuple[3])#abcprint(tuple[3:5])#('abc','123')#tuple[-1]=100print(tuple[::-1])输出:...
2021-02-17 14:55:50
181
原创 列表基础
list=[10,20,30,'abc','123',[1,2,3]]##定义一个列表print(type(list))##显示列表类型print(len(list))#6 列表长度print(list[-1])##显示列表最后一项print(list[-1][-1])##3 最后一项为列表,对列表再取下标print(list[-2][-2])##3 最后第二项为字符串,对字符串再取下标print(list[::-1])##倒序打印列表print(list[3])print(list[3:5
2021-02-17 14:53:48
159
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅