Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3646749
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

发布时间:2019-03-11 14:50:49

bond的创建方法这里我们还是用nmcli来创建bond我们以bond1模式为例首先我们创建一个连接配置文件nmcli connection add con-name bond0 type bond ifname bond0 mode active-backupmode 后跟的bond模式因为我们还没有在bond连接中绑定网卡所以显示为×××nmcli connection add type bond-slave ifname eth2 master .........【阅读全文】

阅读(14096) | 评论(0) | 转发(0)

发布时间:2019-03-07 11:05:22

[root@localhost /]# [root@localhost /]# cat zlg.py #!/bin/pythonfrom random import randintimport timemylist=[1,2,3,4]mylist.reverse()for x in mylist:    print xmytuple=(1,2,3,4)for y in range(len(mytuple)-1,-1,-1):    print mytuple[y]mystr='hello you are a b.........【阅读全文】

阅读(2640) | 评论(0) | 转发(0)

发布时间:2019-03-06 17:24:15

[root@localhost network-scripts]# cat ifcfg-bond0 BOOTPROTO=staticIPADDR=1.1.1.1NETMASK=255.255.255.0DEVICE=bond0ONBOOT=yes[root@localhost network-scripts]# cat ifcfg-ens5TYPE=EthernetBOOTPROTO=noneDEVICE=ens5ONBOOT=noMASTER=bond0slave=yes[root@localhost network-scripts]# cat ifcfg-ens4.........【阅读全文】

阅读(9136) | 评论(0) | 转发(0)

发布时间:2019-03-06 16:33:52

1.如何反向迭代一个序列2.如何查询和替换一个文本中的字符串3.使用python实现单例模式4.重新实现str.strip()5.闭包6.给列表中的字典排序7.合并两个列表排除重复元素8.打乱一个排好序的列表.........【阅读全文】

阅读(1606) | 评论(0) | 转发(0)

发布时间:2019-03-05 16:38:18

Linux Bonding一、什么是bondingLinux bonding 驱动提供了一个把多个网络接口设备捆绑为单个的网络接口设置来使用,用于网络负载均衡及网络冗余二、bonding应用方向1、网络负载均衡对 于bonding的网络负载均衡是我们在文件服务器中常用到的,比如把三块网卡,当做一块来用,解决一个IP地址,流量过大,服务器.........【阅读全文】

阅读(13317) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册