k8s操作手册 2.3#取消所有swap挂载 ⑥NTP服务需要开启,使用集群内的ntp server,确保集群时间的一致性 # yum install chrony -y # systemctl enable chronyd # systemctl start chronyd # cat > /etc/chrony.conf <server 10.99.1.1 iburst prefer dri�file restart docker ②安装k8s二进制组件 #使用aliyun的源 # cat >> /etc/yum.repos.d/k8s-ali.repo < name=k8s-ali baseurl=h�ps://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/ enabled=1 gpgcheck=0 gpgcheck=0 EOF #或者使用google的源: # cat >> /etc/yum.repos.d/k8s-google.repo < name=k8s-google baseurl=h�ps://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=0 0 码力 | 126 页 | 4.33 MB | 1 年前3
python3学习手册条件] #直接返回list类型 例: names=["abc", "xd�l", "fdklsaj"] new_names=[name.upper() for name in names if len(name) >3 ] ② dic�onary推导式 newdic={ key表达式: value表达式 for 变量 in 列表 if 条件} xx=tuple( x for x in range(1,10) ) # tuple(推导式) 可得元组 ★第5章、函数def ★定义函数 def fun_name(参数): "描述" 语句 return xx #若未指定return,则默认返回None ★参数传递 ①不定长参数 def func( *var b, c): print(a, b, c) def func_test3(name, age, weight): print(name, age, weight) func_test(1, 2, 3, name="cof", age=18, weight=70) dict1 = {'name': 'cof', 'age': 18, 'weight': 70} func_test2(*dict1)0 码力 | 213 页 | 3.53 MB | 1 年前3
postgresql操作手册本文档,则说明接受以上2个条 款。 作者:李茂福 更新日期:2023-12-27 ★第1章、安装postgresql # yum install postgresql-server -y # EL8安装光盘AppSteam里自带有10.x 版本的软件包 # postgresql-setup --initdb --unit postgresql org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat- repo-latest.noarch.rpm #或者直接创建repo文件,内容如下 [pgdg13] name=PostgreSQL 13 for RHEL / Rocky $releasever - $basearch baseurl=h�ps://download.postgresql.org/pub er-$basearch enabled=1 gpgcheck=0 # yum module disable postgresql -qy # yum install postgresql13-server -y # /usr/pgsql-13/bin/postgresql-13-setup initdb # systemctl enable postgresql-13 # systemctl start0 码力 | 17 页 | 445.84 KB | 1 年前3
git 操作手册设置用户名和邮箱,只用于提交commit时做metadata信息,不用于身份验证 #全局设置信息保存在 ~/.gitconfig 文件里 # git config --global user.name cof #设置用户名 # git config --global user.email cof@cof-lee.com git init #初始化仓库,将在当前路径下生成.git子目录,子目录里有 此git仓库的相关信息 # git config --local user.name cof #设置用户名 # git config --local user.email cof@cof-lee.com #设置邮箱 # git #查看本地设置 ★系统设置 系统设置信息保存在/etc/gitconfig文件里 # git config --system user.name cof # git config --system user.email cof@cof-lee.com # git config --system --list0 码力 | 35 页 | 1.69 MB | 1 年前3
The DevOps Handbookrepairing ii. Bill Baker, Microsoft distinguished engineer – We used to treat servers like pets: “You name them and when they get sick, you nurse them back tohealth. [Now] servers are [treated] like cattle ability to learn from mistakes and diminish integrating that learning into future work d. Google Web Server (GWS) team was struggling with changes – Hard line: no changes would be accepted into GWS without0 码力 | 8 页 | 23.08 KB | 5 月前3
Redis操作手册/usr/local/bin/redis-server /root/redis-6.2.13/redis.conf #启动服务(后台运 行) ★做成系统服务 # ps -ef | grep redis root 14989 1 0 13:46 ? 00:00:00 redis-server 0.0.0.0:6379 # kill -9 /etc/systemd/system/redis.service <server A�er=network.target [Service] Type=forking ExecStart=/usr/local/bin/redis-server /root/redis-6.2.13/redis.conf PrivateTmp=true [Install] requirepass 1) "requirepass" 2) "Centos123" 10.99.1.51:6379> info # Server redis_version:6.2.13 ...... executable:/usr/local/bin/redis-server config_file:/root/redis-6.2.13/redis.conf ...... 10.99.1.51:6379> 0 码力 | 5 页 | 80.37 KB | 1 年前3
The Phoenix Project” “I have to manually type in hundreds of server names in one of the text boxes. Most of the time, there’s not enough room in the field! A hundred server names are supposed to fit in a sixty-four-character0 码力 | 3 页 | 154.45 KB | 5 月前3
DevOps Meetuptechnology under the sun Solaris, Windows, Linux Apache, IIS, TCServer, etc. Oracle, DB2, SQL Server How we got better We read and we studied. Created a self-improvement project 2 week iterations0 码力 | 2 页 | 246.04 KB | 5 月前3
The DevOps Handbookinfrastructure, etc. 2. Security group changes 3. Changes to configurations 4. XSS, SQLi attempts 5. Server errorsii. Consider blocking and storing source of events when attacks are detected to facilitate0 码力 | 9 页 | 25.13 KB | 5 月前3
共 9 条
- 1













