摘要: http://blog.chinaunix.net/uid-25100840-id-302308.html这两天学习中的异步通知,其中有一个fcntl()函数,就是找不到,很气愤,在网上搜,也没有好的解决办法,最终,一个网友给我做了解答:是因为fcntl()是标准库,在内核源码中是找不到的,只能在系统中查找到,你可以用这个命令来实现:man fcntl所以,我才重新看看man的用法,发现确实有这么多的用处,咳,整理如下:什么是man手册首先,man是manual的简称,中文说法可以是手册。在Linux世界中,许多新手请教某条命令的用法时, 好多不耐心的老手通常会用一条命令来回答这位无助的新手, 阅读全文
posted @ 2014-02-23 23:00 一天不进步,就是退步 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 前提:安装man的命令yum -y install man使用man报错[root@localhost objs]# man fcntlNo manual entry for fcntl[root@localhost objs]# cd [root@localhost ~]# man fcntlNo manual entry for fcntl[root@localhost ~]# which man/usr/bin/man解决报错的方法:yum install man-pages此时就ok了。 阅读全文
posted @ 2014-02-23 22:59 一天不进步,就是退步 阅读(5090) 评论(0) 推荐(2) 编辑
摘要: 1.CentOS - Installing Nginx from sourcehttp://articles.slicehost.com/2009/2/2/centos-installing-nginx-from-sourceVersionsAt the time of writing, the latest stable version of Nginx is 0.6.34. You can check the latest versions and change logs at the main nginx site.Building from source will allow you 阅读全文
posted @ 2014-02-23 22:40 一天不进步,就是退步 阅读(832) 评论(0) 推荐(0) 编辑
摘要: http://www.uml.org.cn/sjms/201009092.asp研磨设计模式之 策略模式2010-09-09 作者:云飞龙行 来源:云飞龙行的blog先感谢众多朋友的支持、评论和鼓励,只有多多努力,写点好的博文来回报大家的好意!接下来想写写另外一个虽然较简单,但是使用很频繁的模式——策略模式策略模式(Strategy)1 场景问题1.1 报价管理向客户报价,对于销售部门的人来讲,这是一个非常重大、非常复杂的问题,对不同的客户要报不同的价格,比如:(1)对普通客户或者是新客户报的是全价(2)对老客户报的价格,根据客户年限,给予一定的折扣(3)对大客户报的价格,根据大客户的累计消费 阅读全文
posted @ 2014-02-23 17:42 一天不进步,就是退步 阅读(549) 评论(0) 推荐(0) 编辑