摘要:
一.安装 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 阅读全文
摘要:
一.安装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 阅读全文
摘要:
一.Rsync同步设定1.安装1). yum install -y rsync2). rpm -ivh rsync3). tar zxvf rsync.tar.gzcd rsync./configure && make && make install2.配置文件vi /etc/rsyncd.conf... 阅读全文
摘要:
方案一: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 主配置 阅读全文
摘要:
一.先安装libevent依赖包官网:http://libevent.org/去下载1. wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz [Linux上去下载]2. tar zxf l... 阅读全文
摘要:
[高]一.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... 阅读全文
摘要:
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'] =... 阅读全文
摘要:
/** * 文件尺寸转换,将大小将字节转为各种单位大小 * @param int $bytes 字节大小 * @return string 转换后带单位的大小 */ function tosize($bytes) { //自定义一个文件大小单位转换函数 if ($bytes >= pow(2,40)) { //如果提供的字节数大于等于2的40次方,则条件成立 $return = round($bytes / ... 阅读全文
摘要:
一.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... 阅读全文