• nginx反向代理报错 an upstream response is buffered to a temporary file

    发布于:2018-05-30 作者:Garany 评论(0) 引用(0) 浏览(333)   分类:破万卷书  

    调整nginx的error日志到warn级别,发现大量的warn错误 2018/05/30 11:51:40 [warn] 14416#0: *33213457 an upstream response is buffered to a temporary file /usr/local/nginx/proxy_temp/3/88/0002331883 while reading upstream, client: 123.138.233.236, server: www.xxxxx.com, request: "GET /html_app/img/dashi/touxiang/37.jpg HTTP/1.1", upstream: "http://127.0.0.1:65012/html_app/img/dashi/touxiang/37.jpg", host: "www.xxxxx.com", referrer: "http://www.xxxxx.com/html_app/dashi.html" 1.原因: nginx默认的buffer太小,请...

    阅读全文>>

    标签: linux nginx
  • shell中for循环,读取一整行

    发布于:2018-04-02 作者:Garany 评论(1) 引用(0) 浏览(398)   分类:破万卷书  

    # cat 123 01 -A INPUT -p tcp -m tcp --dport 111 -j ACCEPT 02 -A INPUT -p udp -m udp --dport 111 -j ACCEPT 03 -A INPUT -p tcp -m tcp --dport 2049 -j ACCEPT 04 -A INPUT -p tcp -m tcp --dport 32803 -j ACCEPT 05 -A INPUT -p udp -m udp --dport 32769 -j ACCEPT 06 -A INPUT -p tcp -m tcp --dport 892 -j ACCEPT 07 -A INPUT -p udp -m udp --dport 892 -j ACCEPT 08 -A INPUT -p tcp -m tcp --dport 875 -j ACCEPT 09 -A INPUT -p udp -m udp --dport 875 -j ACCEPT 10 -A INPUT -p tcp -m tcp --dport 662 -j...

    阅读全文>>

    标签: linux shell awk
  • centos7科学连接外网

    发布于:2017-12-07 作者:Garany 评论(2) 引用(0) 浏览(634)   分类:破万卷书  

    1.安装pip # curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # python get-pip.py 2.安装科学客户端 # pip2.7 install shadowsocks # >/etc/shadowsocks.json # vim /etc/shadowsocks.json {     "server":"***.***.***.***",     "server_port":***,     "local_address": "127.0.0.1",     "local_port":1080,     "password":"********",     "timeout":300,     "method":"********",     "fast_open": false,    ...

    阅读全文>>

  • docker 多主机管理 docker-machine

    发布于:2017-09-07 作者:Garany 评论(1) 引用(0) 浏览(808)   分类:破万卷书  

    Docker Machine 解决docker多主机管理,可以实现集中部署和一致性 192.168.100.221 Docker Machine 192.168.100.222 Docker Host 192.168.100.223 Docker Host ALL_HOST # systemctl stop firewalld # setenforce 0 Docker machine_HOST 1.安装machine # yum install docker -y # curl -L https://github.com/docker/machine/releases/download/v0.9.0/docker-machine-`uname -s`-`uname -m` # mv docker-machine-Linux-x86_64 /usr/local/bin/docker-machine # chmod a+x /usr/local/bin/docker-machine # docker-machine version 2.设置ssh互信 # ssh-keygen ...

    阅读全文>>

    标签: docker