240 发简信
IP属地:湖北
  • dstat

    dstat的默认选项 与许多命令一样,dstat命令有默认选项,执行dstat命令不加任何参数,它默认会收集-cpu-、-disk-、-net-...

  • nginx-跨域

    add_header Access-Control-Allow-Origin *; add_header Access-Control-Allo...

  • nginx-iplimit

    vim nginx.conf: HTTP模块(无cdn节点) #定义一个名为allips的limit_req_zone用来存储session,大...

  • nginx-proxy-ip

    #获取用户真实IP,并赋值给变量$clientRealIP map $http_x_forwarded_for $clientRealIp { ...

  • nginx-log

    log_format mylog '$proxy_add_x_forwarded_for - $remote_user [$time_lo...

  • nginx限定IP

    cd /etc/nginx/conf.d vimblockip.conf allow 103.69.71.161; allow 45.199.1...

  • linux 内核参数

    vim/etc/sysctl.conf net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_fil...

  • ulimit -n

    vim /etc/security/limits.conf * soft nproc 1000000 * hard nproc 1000000 ...

  • max_open_connections

    1、修改/etc/security/limits.conf,添加 root soft nofile 65535 root hard nofile...