摘要: 一、根据系统找到配置文件 二、修改配置文件 BOOTPROT0=static/dhcp (为dhcp时不需要下列中括号内容) ONBOOT=yes 【IPADDR=192.168.1.11 NETMASK=255.255.255.0 GATEWAY=192.168.1.254 DNS=192.168 阅读全文
posted @ 2024-05-28 16:26 Sky_Liao 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在网卡绑定的七种模式下,其中mode=0、2、3、4需要交换机支持,mode=1、5、6不需要交换机配置支持。 创建Mode 0 bonding,并为Bond设置静态IP: #systemctl start network.service #nmcli connection add type bon 阅读全文
posted @ 2024-05-28 14:34 Sky_Liao 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #yum install vconfig 安装vconfig命令包 #modprobe 8021q 加载8021q模块,若不支持8021q模块,则不支持VLAN #lsmod |grep -i 8021q #vconfig add eth0 100 在eth0上配置VLAN 100 #vconfig 阅读全文
posted @ 2024-05-27 10:56 Sky_Liao 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、yum install -y libaio-devel 2、tar zvf fio-3.19.tar.gz 3、cd fio-3.19 4、./configure 5、make 6、make install 阅读全文
posted @ 2024-05-17 14:13 Sky_Liao 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 一、把镜像copy到/home目录下SLE-12-SP5-Server-DVD-ppc64le-GM-DVD1.iso 二、在/目录创建iso文件夹 linux-pk22:/home # mkdir /iso 三、挂载iso镜像文件至/iso目录 linux-pk22:/home # mount - 阅读全文
posted @ 2024-03-21 10:10 Sky_Liao 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 一、引入模块 import sys 二、常用功能 sys.argv: 实现从程序外部向程序传递参数。 sys.exit([arg]): 程序中间的退出,arg=0为正常退出。 sys.path: 获取指定模块搜索路径的字符串集合,可以将写好的模块放在得到的某个路径下,就可以在程序中import时正确 阅读全文
posted @ 2018-09-07 10:58 Sky_Liao 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 一、引入模块 import re 阅读全文
posted @ 2018-09-06 15:35 Sky_Liao 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 转载,原文地址:http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html Git 用得比较少,命令老是记不住。 一般来说,日常使用只要记住下图6个命令,就可以了。但是熟练使用,恐怕要记住60~100个命令。 下面是我整理的常用 Git 命 阅读全文
posted @ 2018-09-06 15:10 Sky_Liao 阅读(159) 评论(0) 推荐(0) 编辑
摘要: usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... Options and arguments (and corresponding environment variables): -b : issue warnings 阅读全文
posted @ 2018-09-06 14:20 Sky_Liao 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: 一、导入模块 import xml.etree.ElementTree as ET 阅读全文
posted @ 2018-09-05 21:16 Sky_Liao 阅读(162) 评论(0) 推荐(0) 编辑