k8s操作手册 2.3
s = 1 net.ipv4.ip_forward = 1 EOF #前3行表示bridge设备在二层转发时也去调用iptables配置的三层规则(包含 conntrack) # sysctl -p #加载配置 ⑧防火墙放行端口 TCP: 6443,2379,2380,10250~10252,30000~32767 UDP: 8285,8472 "insecure-registries": [ "cof-lee.com:5443" ], "exec-opts": [ "na�ve.cgroupdriver=systemd" ] } # mkdir -p /etc/systemd/system/docker.service.d # docker info ★docker会修改防火墙规则,导致pod网络不通 # vi /usr/lib/s service #在[Service]下的ExecStart=/usr/bin/dockerd -H fd:// 这行下面再添加一行: ExecStartPost=/usr/sbin/iptables -P FORWARD ACCEPT # systemctl daemon-reload # systemctl restart docker ★默认还加了DOCKER-USER这个forward链,默认全部return,导致不通,也得0 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
载 python3 的 源 码 包 : h�ps://www.python.org/downloads/source/ 或 者 直 接 wget h�ps://www.python.org/�p/python/3.10.3/Python- 3.10.3.tgz 下载目标版本源码包,并上传到目标linux服务器上 安装依赖: # yum install -y zlib-devel abs(x) #返回x的绝对值 min(x1,x2,x3) #返回最小值 hex(x) #将x转换成16进制数,带0x oct(x) #将x转换成8进制数,带0o bin(x) #将x转换成2进制数,带0b int(x) #将x转换成10进制数,默认认为x为10进制数/str,base=16指 定x字符串为16进制数 divmod() 函 (num, wei) ) %-6.3f 表示左对齐,共6位宽,3位小数,浮点型(默认左对齐) 类 型 码 含义 类型码 含义 %c 字符 %s 字符串 %d 十进制整数 %u 无符号整数 %o 八进制数 %x 小写十六进制数 %X 大写十六进制数 %f 浮点数 %e 科学计数法,小写e %g 自动采用最短的%f或%e %F 同%f,会把inf,nan写成 INF,NAN %E 同%e0 码力 | 213 页 | 3.53 MB | 1 年前3git 操作手册
#设置用户名 # git config --global user.email cof@cof-lee.com #设置邮箱 # git config --global h�p.sslVerify false #不验证ssl证书 # git config --global --list #设置用户名 # git config --local user.email cof@cof-lee.com #设置邮箱 # git config --local h�p.sslVerify false #不验证ssl证书 # git config --local --list 值前6个字符 7b8ff69 (HEAD -> master) msgxxx # git log 文件名 #查看目标文件的提交记录 # git log -p -3 #查看最近3次提交记录 # git reflog #查看git操作记录 # git reset HEAD^0 码力 | 35 页 | 1.69 MB | 1 年前3Predictably Irrational
Is Relative – Even When It Shouldn’t Be Examples: House Shopping, Vacations, Observations: o “humans rarely choose things in absolute terms. We don’t have an internal value meter that tells us Rather, we focus on the relative advantage of one thing over another, and estimate value accordingly” o “we not only tend to compare things with one another but also tend to focus on comparing things that Source Software Observations: o “we live simultaneously in two different worlds – one where social norms prevail, and the other where market norms make the rules.” o “once market norms enter our considerations0 码力 | 3 页 | 234.46 KB | 5 月前3Open Discussion on Project Planning
make detailed plans beyond a program’s ability to control or accurately predict future circumstances o Agile methodology does not force programs to establish their full scope, requirements, and design at define the desired system functions and provide the foundation for Agile estimation and planning. o They describe what the users want to accomplish with the resulting system. User stories help ensure requirements than large requirements documents. DON’T treat planning as a one-time up front activity o In lieu of CDDs and CPDs, programs can develop Requirements Definition Packages (RDPs) to capture a0 码力 | 2 页 | 49.30 KB | 5 月前3postgresql操作手册
postgres=# exit; #退出PG交互界面 # psql -h localhost -p 5432 -U postgres #使用postgres用户登录,需要密 码,默认登录postgres库 postgres=# 表示普通账号,=#表示管理员账号 postgres=# #提示符=>前的postgres表示当前数据库名 # psql -h x.x.x.x -p 5432 -U cof -d db_test #使用cof用户登录pg,连接 db_test这个库 db_test=> 的pg_user表里: ★第5章、使用客户端连接 ①命令行客户端连接pg数据库 # psql -h 10.99.1.122 -p 5432 -U postgres #连接pg数据库, # -h指定地址,-p指定端口号,-U指定用户(默认为当前shell用户名),-W指定 用户密码, # -d指定数据库,默认连接的数据库名同用户名 Password for0 码力 | 17 页 | 445.84 KB | 1 年前3Velocity Conference 2015
e/proceedings [2] YouTube Playlist: https://www.youtube.com/playlist?list=PL055Epbe6d5Y86GSg3nhUH3o_v62FGpCI0 码力 | 4 页 | 176.79 KB | 5 月前3The DevOps Handbook
consider each feature as a hypothesis and use real users to prove/disprove the hypothesis 1. Barry O’Reilly, Lean Enterprise describes as: We Believe thatWill Result in 0 码力 | 8 页 | 24.02 KB | 5 月前3Redis操作手册
★redis-cli客户端工具 ★命令行客户端 在redis服务端安装目录下有redis-cli命令行工具 安装目录下# redis-cli -h 10.99.1.51 -p 6379 -a Centos123 #-h指定服务器地 址, # -p指定端口,-a指定密码 10.99.1.51:6379> config get dbfilename 1) "dbfilename" 2) "dump.rdb"0 码力 | 5 页 | 80.37 KB | 1 年前3
共 9 条
- 1