漂定

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

2013年12月7日

摘要: 一.安装 coreseek1.mmseg安装cd coreseek/mmseg中./configure --prefix=/usr/local/mmseg注:执行后有config.status:error:cannont find input file: src/Makefile.in用automake命令来执行一次然后在执行一下./configure --prefix=/usr/local/mmseg后make && make install2.coreseek安装cd coreseek/csft中./configure --prefix=/usr/local/coresee 阅读全文
posted @ 2013-12-07 18:57 漂定 阅读(506) 评论(0) 推荐(0) 编辑

摘要: 一.安装tar zvxf proftpd.tar.gz./configure --prefix=/usr/lcoal/proftpdmake && make install二.启动vi /usr/local/proftpd/etc/proftpd.conf找到User nobodyGroup nobody后执行下面命令才能启动,不然报找不到用户和组,这个的用户和组也可以自己新建一个,也可以指定系统已存在的/usr/local/proftpd/sblin/proftpd &查看有没有启动成功方法:1).netstat -ant | grep 212).ps ef | gr 阅读全文
posted @ 2013-12-07 18:11 漂定 阅读(188) 评论(0) 推荐(0) 编辑

2013年12月4日

摘要: 一.Rsync同步设定1.安装1). yum install -y rsync2). rpm -ivh rsync3). tar zxvf rsync.tar.gzcd rsync./configure && make && make install2.配置文件vi /etc/rsyncd.conf... 阅读全文
posted @ 2013-12-04 22:32 漂定 阅读(777) 评论(0) 推荐(0) 编辑

摘要: 方案一:LAMP环境安装一.Apache1.安装yum -y install httpd httpd-devel删除:yum -y erase httpd httpd-devel2.启动和关闭1).apachectl start | apachectl stop2). /etc/init.d/httpd start |/etc/init.d/httpd stop3). service httpd start |service httpd stop## 开机启动程序chkconfig level 35 httpd on3.配置文件vi /etc/httpd/conf/httpd.conf 主配置 阅读全文
posted @ 2013-12-04 15:37 漂定 阅读(269) 评论(0) 推荐(0) 编辑

2013年12月3日

摘要: dd 阅读全文
posted @ 2013-12-03 17:15 漂定 阅读(178) 评论(0) 推荐(0) 编辑

摘要: 一.先安装libevent依赖包官网:http://libevent.org/去下载1. wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz [Linux上去下载]2. tar zxf l... 阅读全文
posted @ 2013-12-03 15:07 漂定 阅读(339) 评论(0) 推荐(0) 编辑

2013年11月29日

摘要: [高]一.LAMP安装所需要的源代码包列表libxml http://www.xmlsoft.org/downloads.htmllibmcrypt http://sourceforge.net/projects/mcrypt/files/Libmcrypt/zlib http://www.zlib.net/gd http://libgd.bitbucket.org/autoconf http://www.gnu.org/software/autoconf/#downloadingfreetype http://www.freet... 阅读全文
posted @ 2013-11-29 21:48 漂定 阅读(384) 评论(0) 推荐(0) 编辑

2013年11月28日

摘要: total_page-$this->pageNum,($this->currentPage-ceil($this->pageNum/2)))); $end = min($this->total_page,$start+$this->pageNum); for ($i=$start;$icurrentPage){ $pagelist[$i]['url'] = ''; $pagelist[$i]['str'] = $i; continue; } $pagelist[$i]['url'] =... 阅读全文
posted @ 2013-11-28 15:00 漂定 阅读(211) 评论(0) 推荐(0) 编辑

摘要: /** * 文件尺寸转换,将大小将字节转为各种单位大小 * @param int $bytes 字节大小 * @return string 转换后带单位的大小 */ function tosize($bytes) { //自定义一个文件大小单位转换函数 if ($bytes >= pow(2,40)) { //如果提供的字节数大于等于2的40次方,则条件成立 $return = round($bytes / ... 阅读全文
posted @ 2013-11-28 14:41 漂定 阅读(311) 评论(0) 推荐(0) 编辑

摘要: 一.Memcacheget($id); if($out === false || $out == null){ return ''; }else{ return $out; } } # 写入session public function write($id,$data) { $method = $data?'set':'replace'; return self::$handler->$method(self::session_key($id),$data... 阅读全文
posted @ 2013-11-28 14:24 漂定 阅读(592) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页