Chinaunix首页 | 论坛 | 博客
  • 博客访问: 420050
  • 博文数量: 121
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 540
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-16 16:28
文章分类

全部博文(121)

文章存档

2021年(3)

2018年(1)

2017年(5)

2016年(9)

2015年(23)

2014年(80)

我的朋友

发布时间:2014-11-09 23:15:36

服务器宕机原因很多,资源不足、应用、硬件、系统内核bug等,以下一个小例子服务器宕机了,首先得知道服务器宕机的时间点,然后分析日志查找原因1.last reboot 此命令可以查看主机起来的时间,不是宕机的时间reboot system boot 2.4.........【阅读全文】

阅读(1646) | 评论(0) | 转发(0)

发布时间:2014-11-08 23:17:23

通过修改proc系统的drop_caches清理free的cache$echo 3 > /proc/sys/vm/drop_cachesdrop_caches的详细文档如下:Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.To free pagecache:* echo 1 > /proc/sys/vm/drop_cachesTo.........【阅读全文】

阅读(935) | 评论(0) | 转发(0)

发布时间:2014-11-08 23:14:15

一台老的PHP后台服务器,今天用 free -m 查看,发现内存跑满了。再 top,然后按下shift+m,也就是按内存占用百分比排序,发现排在第一的进程,才占用0.9%,那是什么占用的呢?谷歌了一下,据说是centos为了提高效率,把部分使用过的文件缓存到了内存里。如果是这样的话,我又不需要这样的文件性能,那就.........【阅读全文】

阅读(1013) | 评论(0) | 转发(0)

发布时间:2014-09-30 11:40:14

http://my.oschina.net/willSoft/blog/39272很详细的install steps:http://wiki.centos.org/HowTos/VNC-Server#head-76401321dae4d80916a7fd7e710272a9b85c9485 ----------------------------------------------------------------------------------------------------------------------.........【阅读全文】

阅读(1199) | 评论(0) | 转发(0)

发布时间:2014-09-29 14:52:36

# iptables -I INPUT -p tcp --dport 80 -jDROP # iptables -I INPUT -s 192.168.1.0/24 -p tcp --dport 80 -jACCEPT# iptables -I INPUT -s 211.123.16.123/24 -p tcp --dport 80 -jACCEPT iptables -I INPUT -p tcp --dport 9889 -j DROP iptables -I INPUT -s 192.168.1.0/24 -p tcp --dport.........【阅读全文】

阅读(2801) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册