k8s操作手册 2.3
取消挂载 # vi /etc/fstab # swapoff -a #取消所有swap挂载 ⑥NTP服务需要开启,使用集群内的ntp server,确保集群时间的一致性 # yum install chrony -y # systemctl enable chronyd # systemctl start chronyd # cat > /etc/chrony rr(round-robin) wrr(加权轮询) lc(least connec�on) wlc(加权最少连接) dh(des�na�on hashing) lblc 基于局部性最少连接 sh(source hashing) lblcr 带复制的基于局部性最少连 接 sed ( shortest expected delay) nq(never queue) 默认使用rr ★k8s的service类型: successThreshold: 1 #1次检测成功,则判定pod启动成功了,默认1次 readinessProbe: #pod就绪性探测,对应READY,失败后不会重启pod, 只是服务不可访问 tcpSocket: port: 80 ini�alDelaySeconds: 100 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
#这里可执行python代码,类似shell脚本 >>> print("hello") >>> exit() #退出交互模式 ②执行一次性代码 # python3 -c "要执行的代码,多个语句之间用;分号隔开" ③执行脚本 # vi test.py #内容如下3行 #!/usr/bin/env name,age) values ('uuidxxxxxx','cof-lee',18)") except Exception as e: print(type(e)) # 若在数据库中定义了唯一性约束,当试图插入一 个重复的值时,会触发"sqlite3.IntegrityError"错误 print(e) exit() sqlite_cursor.execute("insert 用于创建图形用户界面应用程序 Tkinter库具有以下优点: 是Python的标准GUI库,无需安装第三方库即可使用 提供了丰富的组件和布局管理器,能够满足大多数应用程序的需求 具有良好的跨平台性,能够在Windows、macOS和Linux等操作系统上 运行 在python 2.x中,模块名为Tkinter(首字母大写) 在python 3.x中,模块名为tkinter(首字母小写)0 码力 | 213 页 | 3.53 MB | 1 年前3
共 2 条
- 1