随笔分类 -  Linux

摘要:1.症状(1)登陆到服务器A(已在本机用ssh-add, ssh -A),scp 到服务器B时提示public key有问题;(2)/tmp/下没有ssh-XXX目录2.原因 服务器A被puppet改过ssh配置,服务器产生的指纹被刷新,所以原来登陆时在本机/Users/andrew/.ssh/known_hosts留下的指纹失效,ssh为了防止中间人攻击,就会不让用户的key传来/tmp/ssh-XXX目录,继而不能scp到服务器B3.解决 把/Users/andrew/.ssh/known_hosts上关于服务器A的指纹删去,再重新登陆A 阅读全文
posted @ 2013-12-11 20:58 children 阅读(787) 评论(0) 推荐(0)
摘要:1.症状(1)执行bin文件时提示:No such file or directory(2)ldd bin文件 的输出为:not a dynamic executable(3)file bin文件 的输出显示程序是32位2.解决debian上只要安装 ia32-libs这个包(apt-get ins... 阅读全文
posted @ 2013-12-11 20:50 children 阅读(7393) 评论(0) 推荐(0)
摘要:一、概述 Linux支持的文件系统大多以块的形式组织文件,为了减少对物理块设备的访问,在文件以块的形式调入内存后,使用块高速缓存(buffer_cache)对它们进行管理。每个缓冲区由两部分组成,第一部分称为缓冲区首部,用数据结构buffer_head表示,第二部分是真正的缓冲区内容(即所存储的数据... 阅读全文
posted @ 2013-11-12 22:41 children 阅读(3712) 评论(0) 推荐(0)
摘要:应用场景: 客户端(client)与服务器A在同一个运营商网络,应用部署在服务器B,服务器A 、B之间建立tunnel,A设置dnat,client通过访问A的8000端口来访问服务器B,B返回的响应通过tunnel到达A,A再返回给client。在dnat之上使用tunnel的原因是通过tu... 阅读全文
posted @ 2013-09-16 16:50 children 阅读(4430) 评论(0) 推荐(0)
摘要:转自:http://blogread.cn/it/article/6479?f=wb 问: 以下几种方式测试磁盘读写速度有什么区别? dd bs=1M count=128 if=/dev/zero of=test dd bs=1M count=128 if=/dev/zero of=test;... 阅读全文
posted @ 2013-08-04 00:57 children 阅读(943) 评论(0) 推荐(0)
摘要:突然重启不了ssh服务,报以下错: /dev/null is not a character device使用以下命令修复/dev/null即可:rm /dev/nullmknod /dev/null c 1 3chmod 666 /dev/null 阅读全文
posted @ 2013-02-17 23:00 children 阅读(331) 评论(0) 推荐(0)
摘要:每个UDP包680字节左右,同时发送1500个包到服务器,发现大多被内核丢掉:修改 /etc/sysctl.conf中关于socket缓冲区的配置 :net.core.rmem_default = 256960net.core.rmem_max = 256960net.core.wmem_defau... 阅读全文
posted @ 2013-01-21 21:12 children 阅读(3830) 评论(0) 推荐(0)
摘要:转自 http://hi.baidu.com/drvial/item/b894e62c2286350e43634a68 很多人一直在使用ps -aux,其实这种用法是错误的,应该使用ps aux和ps -fe。man ps的第一页有一段话:Note that "ps -aux" is disti... 阅读全文
posted @ 2012-06-13 20:23 children 阅读(2691) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/tianlesoftware/article/details/6457487 http://hi.baidu.com/gwt632/blog/item/6eb2821586d57a0c4a90a7d2.html 阅读全文
posted @ 2012-06-13 20:12 children 阅读(155) 评论(0) 推荐(0)
摘要:1、管道 管道是进程通信用的共享内存的一部分, 在逻辑上可以看作是管道文件,在物理上由文件系统的高速缓冲区构成。有两种用于双向通信的管道:匿名管道和命名管道。前者使得有亲属关系的进程能传递信息,一般常用来重定向子进程的标准输入或输出,这样子进程就可以与其父进程交换数据。为了能双向通信,必须创建... 阅读全文
posted @ 2012-06-13 19:38 children 阅读(265) 评论(0) 推荐(0)
摘要:http://www.51testing.com/?uid-202848-action-viewspace-itemid-242043 阅读全文
posted @ 2012-05-20 17:28 children 阅读(160) 评论(0) 推荐(0)
摘要:http://dongwenbo.blog.51cto.com/506198/538860 阅读全文
posted @ 2012-05-20 16:44 children 阅读(209) 评论(0) 推荐(0)
摘要:http://www.cnitblog.com/tarius.wu/articles/2277.html http://www.starming.com/index.php?action=plugin&v=wave&tpl=union&ac=viewgrouppost&gid=33263&tid=... 阅读全文
posted @ 2012-04-16 21:58 children 阅读(1031) 评论(0) 推荐(0)