07 2015 档案

摘要:LAMP介绍及安装1. LAMP是什么?LAMP,包含Linux + Apache + PHP + Mysql。LAMP适用环境适用于追求极致稳定的WEB环境,缺点是需要消耗更多资源。除了LAMP之外,大家应该也经常听到LNMP,不同之处就是Apache换成了Nginx。Apache的工作模式默认采... 阅读全文
posted @ 2015-07-30 09:06 b13272012771 阅读(229) 评论(0) 推荐(0) 编辑
摘要:getInnerIterator(); if ($item->isFile() && in_array(pathinfo($item->getFilename(), PATHINFO_EXTENSION), $this->ext)) { ... 阅读全文
posted @ 2015-07-28 16:34 b13272012771 阅读(177) 评论(0) 推荐(0) 编辑
摘要:环境采集cenots6.364位迷你安装,因为安装前,你需要做一些工作yum install -y make wget 如果你愿意可以更新下系统,更换下yum源.1.安装keepalive官方最新版keepalived-1.2.7tar zxvf keepalived-1.2.7.tar.gzcd ... 阅读全文
posted @ 2015-07-28 15:06 b13272012771 阅读(1187) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include #include #define PORT 8080 // 服务器监听端口void errorHandling(char *message); // 错误处理int... 阅读全文
posted @ 2015-07-13 16:53 b13272012771 阅读(1316) 评论(0) 推荐(0) 编辑
摘要:假定你获得了投资挥发性化学公司的机会,与其生产的化学制品一样,这家公司的股票价格也是不稳定的。你被准许可以在某个时刻买进公司的股票。并在之后某个日期可以卖出公司的股票。买进卖出都是在当天的交易结束后进行。求怎么实现交易的收益最大化。【暴力求解】我们很容易设计一个暴力求解方法来解决本问题:简单地尝试对... 阅读全文
posted @ 2015-07-09 08:59 b13272012771 阅读(193) 评论(0) 推荐(0) 编辑
摘要:插入排序伪代码:INSERT-SORTfor j=2 to A.length key = A[j] //insert A[j] into the sorted sequence A[1..j-1]. i=j-1 while i>0 and A[i]>key A[... 阅读全文
posted @ 2015-07-02 09:05 b13272012771 阅读(133) 评论(0) 推荐(0) 编辑