随笔分类 -  Linux

摘要:yum自动安装:yum install lrzsz 阅读全文
posted @ 2013-07-07 17:22 Rayol 阅读(1796) 评论(0) 推荐(0)
摘要:操作XShell过程中很多时间大家会习惯性的按Ctrl+S进行保存.Ctrl+S在XShell的作用是屏幕锁定,很多朋友会无法操作,会直接把窗口关闭。解决方法:快捷键 Ctrl+Q 即能完成解锁! 阅读全文
posted @ 2013-07-05 12:16 Rayol 阅读(3478) 评论(1) 推荐(1)
摘要:1、查看当前的PHP FastCGI进程数是否够用:netstat -anpo | grep “php-cgi” | wc -l 如果实际使用的”FastCGI进程数”接近预设的”FastCGI进程数”,那么,说明”FastCGI进程数”不够用,需要增大。2、部分PHP程序的执行时间超过了Nginx的等待时间,可以适当增加nginx.conf配置文件中FastCGI的timeout时间,例如:……http{……fastcgi_connect_timeout 300;fastcgi_send_timeout 300;fastcgi_read_timeout 300;……} 阅读全文
posted @ 2012-05-30 17:53 Rayol 阅读(570) 评论(1) 推荐(0)
摘要:1 netstat -n | awk '/^tcp/ {n=split($(NF-1),array,":");if(n<=2)++S[array[(1)]];else++S[array[(4)]];++s[$NF];++N} END {for(a in S){printf("%-20s %s\n", a, S[a]);++I}printf("%-20s %s\n","TOTAL_IP",I);for(a in s) printf("%-20s %s\n", a, s[a]);pri 阅读全文
posted @ 2012-05-24 22:32 Rayol 阅读(4196) 评论(0) 推荐(2)