存档

2010年8月 的存档

真可爱。硬盘空间满了

2010年8月6日 没有评论

真可爱。今天晚上刚好和朋友出去吃饭,晚了点回来,一回来,就收到几个人Q,说网站挂了。。连我自己博客都打不开了。5555
我那个心急呀。要上去看,可是,,宽带帐号又有问题,还上不了网。用别人的无线,那掉包率非常的高啊。

连上网,看了80正常,重启了nginx服务,还是不见好。心急下,直接重启了服务器。唉。保持了200多天没重启的记录,就给清零了。重启后,恢复正常了。想到原因有可能是MYSQL挂了。没再去查啥了。可没几分钟又再次打不开了。。
查看日志 。。哈哈哈哈哈哈哈。。。是空间满了。。。。。。。。。。。。。。。。。。。。。。。。。。哈哈哈。nginx错误日志文件居然有30G了。哈哈。。罪魁祸首是百度!!!!以前一个站目录下放了MP3..结果给百度收着了。。当时服务器流量给这些下载耗光。痛苦了好一阵子。。
9.196.218, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7248#0: *19678 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.189.196.218, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7248#0: *19568 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 58.42.162.39, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *18003 open() “/home/wwwroot/aix.rar” failed (2: No such file or directory), client: 219.130.139.27, server: nginx..net, request: “GET /aix.rar HTTP/1.1″, host: “down..net”, referrer: “http://down..net”
2010/08/06 22:17:51 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *20165 open() “/home/colin/music/ccc.wma” failed (2: No such file or directory), client: 58.250.203.244, server: www.ptcy.net, request: “GET /music/ccc.wma HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:51 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:52 [error] 7249#0: *20049 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 88.230.23.14, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:52 [error] 7249#0: *20144 open() “/home/colin/music/xsdz.mp3″ failed (2: No such file or directory), client: 220.178.102.154, server: www.ptcy.net, request: “GET /music/xsdz.mp3 HTTP/1.1″, host: “www.ptcy.net”
2010/08/06 22:17:52 [info] 7249#0: *20165 client 58.250.203.244 closed keepalive connection

mysql日志
100806 21:37:25 mysqld_safe mysqld from pid file /usr/local/mysql/var/zzz.pid ended
100806 21:38:39 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
100806 21:38:39 [Note] Event Scheduler: Loaded 0 events
100806 21:38:39 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: ’5.1.35-log’ socket: ‘/usr/local/mysql/tmp/mysql.sock’ port: 3306 Source distribution
100806 21:42:09 [ERROR] /usr/local/mysql/libexec/mysqld: Disk is full writing ‘./mysql-bin.000002′ (Errcode: 28). Waiting for someone to free space… (Expect up to 60 secs delay for server to continue after freeing disk space)
100806 21:42:09 [ERROR] /usr/local/mysql/libexec/mysqld: Retry in 60 secs. Message reprinted in 600 secs
100806 21:43:09 [ERROR] /usr/local/mysql/libexec/mysqld: Disk is full writing ‘./mysql-bin.000002′ (Errcode: 28). Waiting for someone to free space… (Expect up to 60 secs delay for server to continue after freeing disk space)
100806 21:43:09 [ERROR] /usr/local/mysql/libexec/mysqld: Retry in 60 secs. Message reprinted in 600 secs
100806 21:52:43 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

100806 21:52:43 [Note] Event Scheduler: Purging the queue. 0 events
100806 21:52:45 [Warning] /usr/local/mysql/libexec/mysqld: Forcing close of thread 335 user: ‘proxy2′

100806 21:52:45 [Warning] /usr/local/mysql/libexec/mysqld: Forcing close of thread 312 user: ‘adminkzgo’

100806 21:52:45 [Warning] /usr/local/mysql/libexec/mysqld: Forcing close of thread 297 user: ‘cacti’

100806 21:52:45 [Warning] /usr/local/mysql/libexec/mysqld: Forcing close of thread 242 user: ‘vi’

100806 21:53:09 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

分类: √个人碎语 标签: ,

Nginx+php-fcgi出现kernel: TCP: time wait bucket table overflow解决方法

2010年8月6日 没有评论

[root@ etc]# tail /var/log/messages
Aug 6 11:29:26 viyin : printk: 640 messages suppressed.
Aug 6 11:29:26 viyin kernel: TCP: time wait bucket
Aug 6 11:29:31 viyin kernel: printk: 299 messages suppressed.
Aug 6 11:29:31 viyin kernel: TCP: time wait bucket table overflow
Aug 6 11:29:37 viyin kernel: printk: 590 messages suppressed.
Aug 6 11:29:37 viyin kernel: TCP: time wait bucket table overflow
Aug 6 11:29:41 viyin kernel: printk: 711 messages suppressed.
Aug 6 11:29:41 viyin kernel: TCP: time wait bucket table overflow
Aug 6 11:29:46 viyin kernel: printk: 290 messages suppressed.
Aug 6 11:29:46 viyin kernel: TCP: time wait bucket table overflow

查看80连接状态
[root@viyin ~]# netstat -an | grep 80 | awk ‘{print $6}’ | sort | uniq -c | sort -rn
5539 ESTABLISHED
768 TIME_WAIT
321 FIN_WAIT1
165 FIN_WAIT2
56 LAST_ACK
32 CONNECTED
22 SYN_RECV
5 STREAM
3 LISTEN
1 33410680
修改 /etc/sysctl.conf
sysctl net.ipv4.tcp_max_tw_buckets=10000

Intel主板开启VT

2010年8月2日 2 条评论

工作原理:
  带有虚拟技术的处理器具有额外的指令集,叫做Virtual Machine Extensions,简称VMX。VMX给CPU带来了10个新的虚拟专用指令:VMPTRLD, VMPTRST, VMCLEAR, VMREAD, VMWRITE, VMCALL, VMLAUCH, VMRESUME, VMXOFF and VMXON。
在虚拟状态下有两种工作模式:root操作和非root操作。通常只有虚拟操作软件——Virtual Machine Monitor (VMM)能够运行在root操作模式下,而操作系统在虚拟机的顶层运行在非root操作模式下。运行在虚拟机顶层的软件同时也叫做“guest software”。

  要进入虚拟模式,VMM需要执行VMXON指令来调入VMM软件,VMM软件使用VMLAUNCH指令来进入每一个虚拟机,使用VMRESUME指令来退出。如果想要退出虚拟模式,可以使用VMM运行VMXOFF指令。在图中的每个guest系统可以是不同的操作系统,同时运行自身的软件。
BIOS里面打开VT功能

分类: √文章精选 标签: , , , ,