张宴HTTPSQS学习

来源:互联网 发布:帝国cms用什么语言写的 编辑:程序博客网 时间:2024/04/25 23:57

导读:由于游戏活动考虑并发问题,需要使用到张宴的开源HTTPSQS,但是,在Ubuntu Server 12.10 版本上安装时候,遇到了几个问题,这里做下记录。也将后续学习使用的做一下总结。

详细

1 安装

1.1 原始安装步骤

ulimit -SHn 65535wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gztar zxvf libevent-2.0.12-stable.tar.gzcd libevent-2.0.12-stable/./configure --prefix=/usr/local/libevent-2.0.12-stable/makemake installcd ../wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gztar zxvf tokyocabinet-1.4.47.tar.gzcd tokyocabinet-1.4.47/./configure --prefix=/usr/local/tokyocabinet-1.4.47/#注:在32位Linux操作系统上编译Tokyo cabinet,请使用./configure --enable-off64代替./configure,可以使数据库文件突破2GB的限制。#./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47/makemake installcd ../wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gztar zxvf httpsqs-1.7.tar.gzcd httpsqs-1.7/makemake installcd ../

1.2 更新后的安装步骤

ulimit -SHn 65535wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gztar zxvf libevent-2.0.21-stable.tar.gzcd libevent-2.0.12-stable/./configure --prefix=/usr/local/libevent-2.0.12-stable/makemake installcd ../# 执行配置时候,报错缺失zlib.h,需要安装这个库,而使用自带的源安装后,依旧不能成功,所以,只能wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.7.tar.gztar zxvf zlib-1.2.7cd zlib-1.2.7/./configuremakemake installcd ../wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gztar zxvf tokyocabinet-1.4.48.tar.gzcd tokyocabinet-1.4.48/./configure --prefix=/usr/local/tokyocabinet-1.4.47/# 注:在32位Linux操作系统上编译Tokyo cabinet,请使用./configure --enable-off64代替./configure,可以使数据库文件突破2GB的限制。# ./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.48/makemake checkmake installcd ../wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gztar zxvf httpsqs-1.7.tar.gzcd httpsqs-1.7/makemake installcd ../
顺利通过。

	
				
		
原创粉丝点击