zoukankan      html  css  js  c++  java
  • centos,nginx安装备忘

    # ssh 登录慢解决

    vim /etc/ssh/sshd_config

    UseDNS no

    # add limits
    vi /etc/security/limits.conf
    * soft nproc 102400
    * hard nproc 102400
    * soft nofile 102400
    * hard nofile 102400
    # add sysctl.conf
    vi /etc/sysctl.conf
    #numbers of timewait,180000 default
    net.ipv4.tcp_max_tw_buckets = 6000

    #quick recycle
    net.ipv4.tcp_tw_recycle = 1

    #socket reuse
    net.ipv4.tcp_tw_reuse = 1

    #use the cookies while syn cookies overflow
    net.ipv4.tcp_syncookies = 1

    net.ipv4.tcp_fin_timeout = 30
    net.ipv4.tcp_keepalive_time = 1200
    net.ipv4.ip_local_port_range = 1024 65000
    "readme.txt" 39L, 1400C
    # add limits
    vi /etc/security/limits.conf
    * soft nproc 102400
    * hard nproc 102400
    * soft nofile 102400
    * hard nofile 102400
    # add sysctl.conf
    vi /etc/sysctl.conf
    #numbers of timewait,180000 default
    net.ipv4.tcp_max_tw_buckets = 6000

    #quick recycle
    net.ipv4.tcp_tw_recycle = 1

    #socket reuse
    net.ipv4.tcp_tw_reuse = 1

    #use the cookies while syn cookies overflow
    net.ipv4.tcp_syncookies = 1

    net.ipv4.tcp_fin_timeout = 30
    net.ipv4.tcp_keepalive_time = 1200
    net.ipv4.ip_local_port_range = 1024 65000
    net.ipv4.tcp_max_syn_backlog = 8192

    sysctl -p

    #install nginx

    #yum install gcc gcc-c++
    #yum install gd-devel
    #to GeoIP dir
    #configure,make & make install
    #echo '/usr/local/lib' > /etc/ld.so.conf.d/geoip.conf
    #ldconfig
    #to nginx dir
    # patch -p1 < /usr/download/nginx/add_module/nginx_tcp_proxy_module-0.4.5/tcp.patch
    # ./configure --with-openssl=/usr/local/lib/openssl-1.0.1g/ --with-pcre=/usr/local/lib/pcre-8.35/ --with-zlib=/usr/local/lib/zlib-1.2.8/ --with-http_image_filter_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_geoip_module --with-http_flv_module --with-http_addition_module --add-module=../add_module/ngx_cache_purge-2.1/ --add-module=../add_module/headers-more-nginx-module-0.25/ --add-module=../add_module/nginx_concat_module/ --add-module=../add_module/nginx_tcp_proxy_module-0.4.5/

  • 相关阅读:
    戒烟与苦乐原则
    计算机视觉(二)-opencv之createTrackbar()详解
    计算机视觉(一)-openCV的安装及使用
    友谊之光
    深度学习-神经网络
    理解与学习深度卷积生成对抗网络
    修改路由器用的校园网账号
    参加Folding@Home(FAH)项目,为战胜新冠肺炎贡献出自己的一份力量
    更改路由器为老版本固件的教程
    逻辑回归(Logistic Regression)详解,公式推导及代码实现
  • 原文地址:https://www.cnblogs.com/jony413/p/4208644.html
Copyright © 2011-2022 走看看