golang获取请求ip
func GetRealIP(r *http.Request) (string, error) { … 继续阅读 golang获取请求ip
func GetRealIP(r *http.Request) (string, error) { … 继续阅读 golang获取请求ip
export IP=123.123.123.123 export PORT=30002 curl -… 继续阅读 zadig quick install
编辑/etc/sysctl.conf追加: #表示同一用户同时可以添加的watch数目(watch一… 继续阅读 tail: inotify cannot be used, reverting to polling: Too many open files
centos挂webdav出现这个问题 df -h看不到挂载点 mount -l可以看到 能读写成功
#备份 ETCDCTL_API=3 etcdctl –endpoints="https:… 继续阅读 etcd备份 还原
#假设my_index索引一直存在 select * from my_table force ind… 继续阅读 mysql强制使用索引
if ($http_user_agent ~* "qihoobot|Baiduspider… 继续阅读 Nginx防蜘蛛爬虫处理
apt-get install davfs2 -y mkdir -p /aliyundrive ch… 继续阅读 ubuntu mount webdav
docker run -d –restart=always -v /etc/alist:/opt/… 继续阅读 docker run alist netdsk webdav tool
yum install gcc -y #安装C依赖 wget http://download.red… 继续阅读 build redis on centos
#运行当前目录及所有子目录下的测试用例 go test ./… #运行指定目录及所有子目录下的测… 继续阅读 golang test测试范围
Deployment apiVersion: apps/v1 kind: Deployment me… 继续阅读 arm部署 azure-sql-edge sql server 兼容数据库
sql server目前不支持m1(arm64)
报错信息: 2022-07-20 07:44:44.026+0000 [id=84] WARNING… 继续阅读 error 出现一个错误无法连接到Jenkins
func TestRuneType(tt *testing.T) { var str = "… 继续阅读 golang rune type
#reuntime/debug #GOGC可以通过GOGC环境变量(所有Go语言程序都能识别)或者r… 继续阅读 golang setup gogc
spec: terminationGracePeriodSeconds: 30 containers… 继续阅读 kubernetes pod grace period seconds
cd /tmp export PCAPV=1.10.1 wget http://www.tcpdum… 继续阅读 arm64 build libpcap
bash -n test.sh #读一遍脚本中的命令但不执行,用于检查脚本中的语法错误。 bash … 继续阅读 shell脚本调试
& 后台执行 不管结果 ;顺序执行 不管结果 && 执行成功再执行后续的命令