上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: #文件权限备份 用getfacl 例子: getfacl -R /path/to/file > file_bak #文件权限恢复 用 setfacl 例子: setfacl --restore=file_bak /path/to/file 如果想要恢复到其他机器可以使用scp传输并恢复 阅读全文
posted @ 2023-03-01 16:46 运维小勾勾 阅读(321) 评论(0) 推荐(0)
摘要: 第一步:编辑此文件 vim /etc/inputrc 第二步:去掉以下配置的注释,并修改none为 visible set bell-style visible 第三步:重启生效 reboot 阅读全文
posted @ 2023-03-01 15:21 运维小勾勾 阅读(287) 评论(0) 推荐(0)
摘要: Python3.5 升级 Python3.7 概述 普遍系统一般自带两个python版本,一个是python2.7(很快就不会维护了),另一个是python3.5,目前很多最新库,尤其是深度学习相关的库要求python3.6以上,所以就需要升级 1. Download python3.7 wget 阅读全文
posted @ 2023-02-28 19:50 运维小勾勾 阅读(651) 评论(0) 推荐(0)
摘要: ##概念 nohup 英文全称 no hang up(不挂起),用于在系统后台不挂断地运行命令,退出终端不会影响脚本/程序的运行 在默认情况下为进行非重定向时,会输出一个 nohup.out 的文件到当前目录,如果当前目录的 nohup.out 文件不可写,输出重定向到 $HOME/nohup.ou 阅读全文
posted @ 2023-02-28 15:52 运维小勾勾 阅读(440) 评论(0) 推荐(0)
摘要: 基本环境安装 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 1. 下载到本地并解压 wget https://www.py 阅读全文
posted @ 2023-02-26 18:42 运维小勾勾 阅读(93) 评论(0) 推荐(0)
摘要: #手动扩缩容 1. kubectl scale deploy nginx --replicas=3 #非交互 2. kubectl edit deploy nginx #交互式 阅读全文
posted @ 2023-02-22 22:58 运维小勾勾 阅读(34) 评论(0) 推荐(0)
摘要: 更新yaml文件镜像版本--模拟更新版本 1. kubectl set image deploy nginx nginx=nginx:1.14.2 --record #非交互 2. kubectl edit deploy nginx #交互式更改 查看历史版本 kubectl rollout his 阅读全文
posted @ 2023-02-22 22:45 运维小勾勾 阅读(123) 评论(0) 推荐(0)
摘要: 修改deployment yaml文件的镜像版本 1.kubectl set image deploy nginx nginx=nginx:1.14.2 --record #非交互 2.kubectl edit deploy nginx #交互式更改 更新本地yaml 1.kubectl apply 阅读全文
posted @ 2023-02-22 22:08 运维小勾勾 阅读(78) 评论(0) 推荐(0)
摘要: kubectl create deploy nginx --image=**nginx:1.14.2** --replicas=3 -oyaml --dry-run=client > nginx-deploy.yaml apiVersion: apps/v1 kind: Deployment met 阅读全文
posted @ 2023-02-20 22:51 运维小勾勾 阅读(188) 评论(0) 推荐(0)
摘要: yum install -y bash-completion #增加更多命令tab自动补全 bash #自动补全生效 阅读全文
posted @ 2022-12-29 10:00 运维小勾勾 阅读(39) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页