vscode 使用dlv远程调试golang程序
vscode 使用dlv远程调试golang程序
编译 GOOS=linux GOARCH=amd64 go build -gcflags="all = -N -l" main.go 远程机器 # ${pid} 远程机器上运行go程序的pid dlv --listen=:2345 --headless=true --api-version ...
centos 禁止更新内核
centos 禁止更新内核
# 禁止更新内核等 if [ "$(grep -c "exclude=kernel" /etc/yum.conf)" -eq '0' ]; then sed -i '$a exclude=kernel* centos-release* initscripts* gcc-*' /etc/yum ...
ffmpeg 羽化边缘模糊(柔边模糊)
ffmpeg 羽化边缘模糊(柔边模糊)
ffmpeg -i 快乐大本营test0616.mp4 -filter_complex "nullsrc=s=1280x720,drawbox=x=50:y=50:w=200:h=200:color=#ffffff:t=fill:enable='between(t,0,100)'[mask],[0 ...
Attempting next endpoint for pull after error: manifest unknown: OCI manifest found, but accept header does not support OCI manifests
Attempting next endpoint for pull after error: manifest unknown: OCI manifest found, but accept header does not support OCI manifests
podman 构建镜像是发现报 Attempting next endpoint for pull after error: manifest unknown: OCI manifest found, but accept header does not support OCI manifests。 ...
The request client is not a secure context and the resource is in more-private address space `private`
The request client is not a secure context and the resource is in more-private address space `private`
chrome请求报错 has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private 原因 ...
keepalived 高可用(主备切换)
keepalived 高可用(主备切换)
安装keepalived(ALL) yum install -y keepalived 配置服务(ALL) cat /etc/keepalived/keepalived.conf global_defs { router_id test001 #标识,只是一个名称 s ...
k8s集群报错之You must be logged in to the server (Unauthorized)
k8s集群报错之You must be logged in to the server (Unauthorized)
这是个常见的错误,一般是证书更新后,没有即时更新kubectl配置导致的。 error: You must be logged in to the server (Unauthorized) 解决方法 cp -i /etc/kubernetes/admin.conf $HOME/.kube/ ...
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 ...
signed with custom identity or adhoc
signed with custom identity or adhoc
错误信息 启动APP闪退,然后通过终端启动发下报: not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed wit ...
zhr

张文兵

90后程序员

 湖南 - 长沙



友情链接