`
happyqing
  • 浏览: 3154302 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
  通过serverindex.xml查看 /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/dev01Node01Cell/nodes/dev01Node01/serverindex.xml   <specialEndpoints xmi:id="NamedEndPoint_1282247807415" endPointName="WC_adminhost_secure">       <endPoint xmi:id="EndPoint_128 ...
  原文:http://zhangxugg-163-com.iteye.com/blog/1551269   nginx upstream keepalive connections   Nginx从 1.1.4 开始,实现了对后端机器的长连接支持,这是一个激动人心的改进,这意味着 Nginx 与后端机器的通信效率更高,后端机器的负担更低。   例如,对一个没有长连接支持的后端机器,会出现大量TIME_WAIT 状态的连接,使用以下命令验证之: netstat -n | grep TIME_WAIT   经过查阅官方文档,其目前已经实现了http, fastcgi, me ...
在注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters里, 修改如下两个键值:   TcpTimedWaitDelay 5 释放连接的等待时间,默认值是30s。调小 (创建名为 MaxUserPort 的新 REG_DWORD 值。) MaxUserPort 65536  端口号数量,调大   windows查看TIME_WAIT连接的数据量 (linux:netstat -an | grep TIME_WAIT -wc) netstat -an|find "xxx.xxx. ...
  查看TIME_WAIT连接数量 netstat -an | grep TIME_WAIT -wc   快速关闭TIME_WAIT连接 vi /etc/sysctl.conf net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 生效 sysctl -p 或 sysctl -p /etc/sysctl.conf   参考: Linux内核 TCP/IP、Socket参数调优 http://blog.csdn.net/beyondlpf/article/details/52871932  
原文:http://leo108.com/pid-2132.asp     realip模块的作用是:当本机的nginx处于一个反向代理的后端时获取到真实的用户IP。 如果没有realip模块,nginx的access_log里记录的IP会是反向代理服务器的IP,PHP中$_SERVER['REMOTE_ADDR']的值也是反 ...
  添加--with-http_realip_module 不用停止服务,平滑升级,老的nginx进程处理完所有请求后退出,新的nginx进程处理新的请求   备份nginx cp /opt/nginx/sbin/nginx /opt/nginx/sbin/nginx20160217 cp /opt/nginx/conf/nginx.conf /opt/nginx/conf/nginx20160217.conf   查看已安装模块 /opt/nginx/sbin/nginx -V     --prefix=/opt/nginx --with-http_stub_statu ...
redis-3.2.6   linux下安装redis 启动,停止,连接 编辑  删除 http://happyqing.iteye.com/blog/2348255   linux安装redis主备安装配置 http://happyqing.iteye.com/blog/2353516   建议最少配3个哨兵, 如果只有两台服务器,(一个服务器也可装多个r ...
linux下安装redis 启动,停止,连接 编辑  删除 http://happyqing.iteye.com/blog/2348255   linux安装redis主备安装配置 http://happyqing.iteye.com/blog/2353516   建议最少配3个哨兵, 如果只有两台服务器,(一个服务器也可装多个redis,端口不同) 主redis服务器,1个哨兵 从redis服务器,2个哨兵   java端配置连接池,连接多个哨兵 http://blog.csdn.net/csolo/article/details/53196293   在一台机器 ...
  主redis安装 linux下安装redis 启动,停止,连接 编辑  删除 http://happyqing.iteye.com/blog/2348255   从redis配置 cp /opt/redis/conf/redis.conf /opt/redis/conf/redis6380.conf   配置文件做以下调整 #设置端口号 #port 6379 port 6380   #设置pid文件路径 #pidfile /var/run/redis_6379.pid pidfile /opt/redis/redis_6380.pid   #设置数据库文 ...
  哨兵启动警告 WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.   可优化TCP参数 方法一、重启无效 echo 2048 > /proc/sys/net/core/somaxconn    方法二、 vi /etc/sysctl.conf 添加 net.core.somaxconn = 2048   然后在终端中执行,使之生效 sysctl -p ...
AIX UNIX 下得先执行 crontab -e 编辑后 再执行 crontab -l 查看, 要是先执行crontab -l 会报错,   报错 SQL1013N  The database alias name or database name "DBNAME" could not be found.   解决办法 在脚本里加入执行.profile,加入“环境变量” . /home/test/.profile 注意,前面是点空格   .profile里加入内容 PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb ...
  每分钟执行 * * * * * /bin/bash /home/test/test.sh > /dev/null 2>&1 不发邮件 > /dev/null 2>&1   Linux每5分钟执行 */5 * * * * /bin/bash /home/test/test.sh > /dev/null 2>&1   Linux,UNIX通用,每5分钟执行,其他每几分钟类似 0,5,10,15,25,30,35,40,45,50,55 * * * * /bin/bash /home/test/test.sh > ...
执行删除语句,数据量太大,报错 The transaction log for the database is full.. SQLCODE=-964, SQLSTATE=57011, DRIVER=3.61.75   日志满了,可以调大   一、查看配置 $ db2 get db cfg for dbName   日志文件大小(4KB)  Log file size (4KB)                         (LOGFILSIZ) = 1800(可以修改) 主日志文件的数目  Number of primary log files           ...
  #!/bin/sh #today=`date +%Y%m%d` #todayHyphen=`date +%Y-%m-%d` year=`date +%Y` month=`date +%m` day=`date +%d` getYesterday() { #to int month=`expr $month + 0` day=`expr $day - 1` if [ $day -eq 0 ]; then month=`expr $month - 1` if [ $month -eq 0 ]; then month=1 ...
linux版下载地址 http://download.redis.io/releases/ windows版下载地址 https://github.com/MicrosoftArchive/redis/releases   一、安装 上传redis-3.2.6.tar.gz到/opt下 [root@dev opt]# tar -xvf redis-3.2.6.tar.gz [root@dev opt]# cd redis-3.2.6   [root@dev redis-3.2.6]# make    指定安装目录PREFIX [root@dev redis-3.2. ...
Global site tag (gtag.js) - Google Analytics