上一页 1 2 3 4 5 6 7 8 ··· 92 下一页
摘要: 设置log_format,添加request_time,$upstream_response_time,位置随意 og_format main '"$request_time" "$upstream_response_time" $remote_addr - $remote_user [$time_ 阅读全文
posted @ 2019-11-22 16:12 ma_fighting 阅读(13901) 评论(0) 推荐(1) 编辑
摘要: root@ubuntu1604:~# more /etc/os-release NAME="Ubuntu"VERSION="16.04.5 LTS (Xenial Xerus)"ID=ubuntuID_LIKE=debianPRETTY_NAME="Ubuntu 16.04.5 LTS"VERSIO 阅读全文
posted @ 2019-11-22 14:43 ma_fighting 阅读(547) 评论(0) 推荐(0) 编辑
摘要: https://razeencheng.com/post/simple-use-go-exec-command.html 阅读全文
posted @ 2019-11-22 14:03 ma_fighting 阅读(261) 评论(0) 推荐(0) 编辑
摘要: systemd 启动的服务, 跟系统的ulimit 没有关系. 大概的意思就是通过systemd启动的服务,不会使用ulimit中的配置,需要在systemd中或者service配置文件中定义,可以通过查看 /proc/<pid>/limits文件中的内容来确定 修改service定义,增加"Lim 阅读全文
posted @ 2019-11-22 14:01 ma_fighting 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid" 解决办法: $ sudo nginx -c /usr/lo 阅读全文
posted @ 2019-11-22 13:55 ma_fighting 阅读(750) 评论(0) 推荐(0) 编辑
摘要: docker logs -f f03b0754eb23(容器ID) 阅读全文
posted @ 2019-11-19 16:24 ma_fighting 阅读(4575) 评论(0) 推荐(0) 编辑
摘要: curl -I "http://baidu.com" 加大写的i参数 阅读全文
posted @ 2019-11-19 16:21 ma_fighting 阅读(2901) 评论(0) 推荐(1) 编辑
摘要: package main import ( "io" "log" "os" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/moun... 阅读全文
posted @ 2019-11-12 11:18 ma_fighting 阅读(2700) 评论(1) 推荐(1) 编辑
摘要: package 测试 import ( "fmt" "github.com/magiconair/properties/assert" "net/http" "net/http/httptest" "testing" ) func TestPing(t *testing.T) { for i:=0; i<10; i++ { t.Run("sds", func(t *testing.T) { t.P 阅读全文
posted @ 2019-11-09 13:58 ma_fighting 阅读(242) 评论(0) 推荐(1) 编辑
摘要: Linux /var/log下各种日志文件: 阅读全文
posted @ 2019-11-09 13:38 ma_fighting 阅读(462) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 92 下一页
历史天气查