ansible 超详细讲解[值得收藏]
ansible 超详细讲解[值得收藏]
ansible安装 yum install python39 -y pip3.9 install ansible # 查看版本 ansible --version ansible配置 mkdir /etc/ansible # 此处根据安装的 ansible 版本进行修改 # wget -O ...
MacOS docker desktop 替代之 docker-ce
MacOS docker desktop 替代之 docker-ce
服务端 安装docker-ce yum install -y yum-utils yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/fedora/docker-ce.repo 启动服务 syst ...
sshd禁止密码登录
sshd禁止密码登录
修改配置 vim /etc/ssh/sshd_config # 禁止密码登录 PasswordAuthentication no # 确保秘钥登录打开 PubkeyAuthentication yes 重启服务 # 这里建议reload systemctl reload sshd.ser ...
centos7安装高可用k8s集群
centos7安装高可用k8s集群
一、环境准备 1 主机准备 主机 Ip主机名主功能10.200.20.116master01etcd,apiserver,controller-manager,scheduler,docker,proxy10.200.20.117master02etcd,apiserver,controller ...
MacOS docker desktop 替代之 Podman
MacOS docker desktop 替代之 Podman
安装虚拟机 # 本机运行 brew install multipass --cask # 创建一个虚拟机 multipass launch -c 2 -d 20G -m 2G -n podman 20.04 # 启动虚拟机 multipass shell podman 虚拟机运行 sudo ...
ssh客户端于服务端保持连接
ssh客户端于服务端保持连接
linux ssh 默认没有开启心跳,所以很容易导致连接断开。 服务端设置 sudo vim /etc/ssh/sshd_config TCPKeepAlive yes ClientAliveInterval 60 ClientAliveCountMax 3 客户端设置 一般还是建议 ...
ssh-keygen 新老rsa秘钥转换
ssh-keygen 新老rsa秘钥转换
id_rsa 第一行”BEGIN OPENSSH PRIVATE KEY” 转 “BEGIN RSA PRIVATE KEY” 安装软件 windows https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html maco ...
使用ssh配置跳板机
使用ssh配置跳板机
简单的修改/etc/ssh/ssh_config文件即可通过跳板机,直达目标服务器。 配置方法 cat /etc/ssh/ssh_config TCPKeepAlive yes ServerAliveInterval 60 ServerAliveCountMax 3 Host jump- ...
Golang中的URL解析器
Golang中的URL解析器
URL解析器有助于从URL收集所有参数数据。 代码 package main import ( "fmt" "log" "net" "net/url" "strings" ) func main() { var links = []str ...
ssh无法登陆的一些常见问题
ssh无法登陆的一些常见问题
收集一些ssh登陆常见的问题,方便快速解决问题。 重要事情 cat /var/log/secure cat /var/log/message 无论你遇到任何奇葩的sshd问题,你先执行上面的命令查看下日志。 错误一 问题描述 Authentication refused:bad own ...
zhr

张文兵

90后程序员

 湖南 - 长沙



友情链接