k8s环境问题
8080 refuse The connection to the server localhost:8080 was refused - did you specify the right host or port? mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config su...
8080 refuse The connection to the server localhost:8080 was refused - did you specify the right host or port? mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config su...
containerd配置 0 14:34:49 192.168.10.241:/var/lib/containerd $ cat /etc/containerd/config.toml version = 2 root = "/var/lib/containerd" state = "/run/containerd" [grpc] address = "/run/container...
linux格式化磁盘 fdisk -l sudo fdisk /dev/sdX g n w sudo mkfs.ext4 /dev/sdX1 Ubuntu 20.04 使用GParted磁盘分区和挂载 Ubuntu 20.04 使用GParted磁盘分区和挂载 macos制作windows启动镜像 迫于 macos 下制作 windows 安装盘的教程鱼龙混杂—MacOS 和 Win...
开机启动 开机启动 ssh设置 共享 远程登录 互联网共享 (base) 0 00:10:36 Mac-mini:~ $ nc -cv 127.0.0.1 22 Connection to 127.0.0.1 port 22 [tcp/ssh] succeeded! SSH-2.0-OpenSSH_9.6 Invalid SSH identification string...
use-command #!/bin/bash output=$(date) echo "${output}" >>ddd VAR1="$1" MOREF=$(sudo run command against "$VAR1" | grep name | cut -c7-) echo "$MOREF" 复制成功
#!/bin/bash name="$(whoami)" path="$(getent passwd | cut -d: -f6 | grep $name)" echo $path # 当前用户的公钥的路径 rsaPub="${path}/.ssh/id_rsa.pub" pubContent="$(cat $rsaPub)" # https://superuser.com/qu...
概述 如何在shell中处理异常 立即捕获 Automatic exit from Bash shell script on error [duplicate] set -e 任何后续的脚本,一旦存在错误, 会立马退出 #!/bin/bash set -e # Any subsequent(*) commands which fail will cause the she...
概述 如何在shell中处理异常 立即捕获 Automatic exit from Bash shell script on error [duplicate] set -e 任何后续的脚本,一旦存在错误, 会立马退出 #!/bin/bash set -e # Any subsequent(*) commands which fail will cause the she...
rc.local 20220401 报错解决:the input device is not a TTY Shell 变量没解析成功及解决方法 before How to run scripts on start up? How to run scripts on start up? rc.local No /etc/rc.local file on Ubuntu 18.04...
restart wifi #!/bin/sh ifconfig enp0s20f0u14 down ifconfig enp0s20f0u13 down echo "downed" ifconfig enp0s20f0u14 up ifconfig enp0s20f0u13 up echo "uped" dhclient enp0s20f0u14 dhclient enp0s20f0u13 ...