# 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/

centos,nginx安装备忘的更多相关文章

  1. 安装 CentOS 后的系统配置及软件安装备忘

    安装 CentOS 后的系统配置及软件安装备忘 // */ // ]]>   安装 CentOS 后的系统配置及软件安装备忘 Table of Contents 1 Linux 自举过程 1.1 ...

  2. CentOS安装备忘2

    CentOS7安装备忘2 安装过程中不联网,安装完成也不要立刻联网,先关闭远程的服务后再联网更新.安装默认使用English,目的是生成的Home下所有文件夹都是英文的,方便使用. ========= ...

  3. MSDE2008安装备忘

    MSDE2008安装备忘(适用于WIN7 8 10) 1.系统中必须要VC8.0,即VC2005运行库.2.系统中必须要有.net framework2.0.3.5.4.6运行库.3.windows防 ...

  4. Sublime Text4(Build 4126) 安装备忘

    Sublime Text4(Build 4126) 安装备忘 sublime text 4126 PJ已测可用 打开浏览器进入网站https://hexed.it 打开sublime text4安装目 ...

  5. Linux服务器软件安装备忘

    1.Centos安装Mysql --安装 yum install mysql-server 卸载 yum -e mysql-server --设置为开机启动 chkconfig mysqld on - ...

  6. CentOS7安装备忘

    ======1 下载CentOS镜像文件:https://www.centos.org/download/http://isoredirect.centos.org/centos/7/isos/x86 ...

  7. nginx1.8+php5.6.10 服务器编译安装备忘2015-06

    又要重新装一台阿里云服务器.开始想用脚本,但发现脚本的程序版本都比较低  还是手动编译最新版本 开始前 更新服务器到最新版本 #yum makecache #yum update //分区挂数据盘 # ...

  8. windows下matplotlib编译安装备忘

    windows下,codeblocks,mingw安装matplotlib. python下一些源码的编译安装,备忘. matplotlib官网编译好的版本只支持到3.3.我不慎刚下了python3. ...

  9. Mint17 一些安装备忘

    1,中文输入法: sudo apt-add-repository ppa:fcitx-team/dailybuild-fcitx-master sudo apt-get update sudo apt ...

随机推荐

  1. C++语法

    http://stackoverflow.com/questions/4269034/what-is-the-meaning-of-prepended-double-colon

  2. linux下的代码比较工具

    在linux下有很多不错的代码比较工具:meld.DiffMerge.xxdiff.diffuse.Kompare等... diff : 文件比较工具用于比较计算机上的文件的内容,找到他们之间相同与不 ...

  3. 将 expression 转换为数据类型 int 时发生算术溢出

    将 expression 转换为数据类型 int 时发生算术溢出错误 2种快速处理方法 1.CONVERT(bigint, 字段名): 2.Cast(字段名 as decimal(18,2)): 这个 ...

  4. LoadRunner简介

    LoadRunner是什么 LoadRunner是一个性能测试工具,它最初是Mercury公司的产品,后背HP收购. LoadRunner常用来做什么 l 验证某系统在某环境下是否满足性能需求. l  ...

  5. java1234教程系列笔记 S1 Java SE 02 eclipse初步使用、注释、标识符

    第二章 第一节,讲了简单使用eclipse 写控制台程序.没有讲包,直接用的默认的包名. 还是编写了两个控制台例子 public class HelloWorld { public static vo ...

  6. [转载]jQuery1.9完全删除live事件

    其实关于live被删除的事件早就在1.7.2版本以后就有通知过了 不过在官方一直提倡使用.on代替.live的过程中 .live事件一直沿用 今天更新了 看下jQuery1.9的相关信息 发现api中 ...

  7. Shiro标签

    在使用Shiro标签库前,首先需要在JSP引入shiro标签: <%@ taglib prefix="shiro" uri="http://shiro.apache ...

  8. day1作业--登录入口

    作业概述: 编写一个登录入口,实现如下功能: (1)输入用户名和密码 (2)认证成功后显示欢迎信息 (3)输错三次后锁定 流程图: readme: 1.程序配置文件: 黑名单文件blacklist.t ...

  9. WinRAR压缩操作帮助类

    //------------------------------------------------------------------------------------- // All Right ...

  10. javascript 获取iframe中的dom

    太扯了,一个多小时都没搞定,获取不到iframe中的dom元素. <div id="one"> this is one </div> <div> ...