码迷,mamicode.com
首页 >  
搜索关键字:nginx 超时 timeout 负载 反向代理    ( 47068个结果
高新服务器启动
------------------------------------------------------------------------------------------Nginx启动:cd /usr/local/nginx/sbin./nginxTomcat启动:cd /home/cms...
分类:其他好文   时间:2014-05-16 04:19:46    阅读次数:243
PHP做负载均衡回话保持问题参考
最近一个项目的服务器老是出现Session数据丢失问题,导致用户莫名其妙的退出,原因是太相信我们的运维人员所谓的负载均衡会话保持的概念。会话保持 的原理就是负载均衡通过Cookie来分发那个客户连接被路由到那台后端具体服务器,例如后端有两台服务器,负载均衡将会将所有的请求平均分配对应后端两 台服务器...
分类:Web程序   时间:2014-05-16 04:12:03    阅读次数:320
502 Bad Gateway nginx 解决
打开 /usr/local/php/etc/php-fpm.conf 调大以下两个参数(根据服务器实际情况,过大也不行) 5120 600
分类:其他好文   时间:2014-05-15 21:12:11    阅读次数:206
oracle 锁
问题如下:SQL>connscott/tiger@vm_databaseConnectedtoOracleDatabase11gEnterpriseEditionRelease11.1.0.6.0Connectedasscott。。。。。。SQL>droptablestudent2;droptablestudent2ORA-00054:资源正忙,但指定以NOWAIT方式获取资源,或者超时失效=======================..
分类:数据库   时间:2014-05-15 19:05:58    阅读次数:481
nginx配置if错误语句时出错一例
server{if(!-e$request_filename){rewrite^(.*)$/index.phplast;}}如果if没有放在location时,在做memc缓存时,在错误日志里会提示以下信息2014/05/1210:45:51[error]11520#0:*325726srcache_fetch:cachesenttruncatedresponsebodywhilesendingtoclient,client:192.168.3.124,..
分类:其他好文   时间:2014-05-15 19:02:44    阅读次数:350
删除大量小文件
FreeBSD删除文件缓存,在负载方面FreeBSD比CentOS好很多很多。#!/bin/sh if[!-s/tmp/dir.dat];then find/home/www/web/cache-typed>/tmp/dir.dat fi mkdir/var/tmpdir DIRS=`cat/tmp/dir.dat` foriin$DIRS do load=$(top-n1|awk-F‘[.]+‘‘/averages/{print$6}‘) #rsync--delet..
分类:其他好文   时间:2014-05-15 18:51:06    阅读次数:314
nginx日志切割shell脚本
#!/bin/bash #function:cutnginxlogfilesshell #cp/usr/local/nginx/logs/access.log/usr/local/nginx/logs/access.log.bak log_cut_path="/var/log/nginx" log_files_path="/usr/local/nginx/logs/" log_files_dir=${log_cut_path}$(date-d"yesterday"+"%Y")/$(date-d"yesterd..
分类:其他好文   时间:2014-05-15 18:49:50    阅读次数:244
was unable to start within 45 seconds. If the server requires more time, try increasing the timeout
在eclipse启动tomcat时遇到超时45秒的问题: Server Tomcat v7.0 Server at localhost was unable to startwithin 45 seconds. If the server requires more time, try increasingthe timeout in the server editor. 网上解决办法...
分类:其他好文   时间:2014-05-15 18:31:36    阅读次数:242
wordpress安装(ubuntu+nginx+php+mariadb)
一、环境ubuntu12.04.4nginx 1.6.0mariadb 10.0更新系统补丁sudo apt-get updatesudo apt-get dist-upgrade -y挂载swap分区dd if=/dev/zeroof=/media/fasthdd/swapfile.img bs=...
分类:数据库   时间:2014-05-15 17:23:21    阅读次数:1622
leetcode第一刷_Regular Expression Matching
这道题跟有?和*的那道题很像,不过要简单一些。为什么会简单呢,因为*号只能匹配跟它前面相同的字符。需要注意一点,从aab可以用c*a*b来匹配可以看出,*号可以使他之前的那个字符出现次数变成0。 昨天实验室的同学正好在做这个题,说想用递归做,我想都没想就说用递归肯定超时了。她为什么,我跟人家说因为递归的分支太多了,可怎么也想不起当初自己是怎么写的,回来一看,居然用递归做的,打脸啊。。这个题为什么...
分类:其他好文   时间:2014-05-15 13:29:34    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!