锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲AV无码专区首,亚洲香蕉在线观看,亚洲精品第五页中文字幕http://m.tkk7.com/stevenjohn/category/54203.html閭d簺闈掓槬鐨勫瞾鏈?/description>zh-cnMon, 03 Mar 2014 13:34:36 GMTMon, 03 Mar 2014 13:34:36 GMT60httpsqs 瀹夎浣跨敤http://m.tkk7.com/stevenjohn/archive/2014/03/01/410485.htmlabinabinSat, 01 Mar 2014 07:26:00 GMThttp://m.tkk7.com/stevenjohn/archive/2014/03/01/410485.htmlhttp://m.tkk7.com/stevenjohn/comments/410485.htmlhttp://m.tkk7.com/stevenjohn/archive/2014/03/01/410485.html#Feedback0http://m.tkk7.com/stevenjohn/comments/commentRss/410485.htmlhttp://m.tkk7.com/stevenjohn/services/trackbacks/410485.html
鎴戣繖閲屼嬌鐢ㄧ殑鏄疌entos6.4鐨勭幆澧冧笅闈㈡祴璇曠殑錛?br />ulimit -SHn 65535
瀹夎錛歭ibevent-2.0.12-stable.tar.gz

wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gz
tar zxvf libevent-2.0.12-stable.tar.gz
cd libevent-2.0.12-stable/
./configure --prefix=/usr/local/libevent-2.0.12-stable/
make
make install
cd ../

瀹夎錛歵okyocabinet-1.4.47.tar.gz
wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gz
tar zxvf tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47/
./configure --prefix=/usr/local/tokyocabinet-1.4.47/
#Note: In the 32-bit Linux operating system, compiler Tokyo cabinet, please use the ./configure --enable-off64 instead of ./configure to breakthrough the filesize limit of 2GB.
#./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47/
make
make install
cd ../

##鎵ц涓婇潰榪欎釜tokyocabinet-1.4.47.tar.gz杞歡鍖呭畨瑁呯殑鏃跺欙紝瀵逛簬32bit鐨勬満鍣紝闇瑕佷嬌鐢?br />
#./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47/
榪欎釜鍛戒護錛屾澶栨垜瀹夎鐨勮繃紼嬩腑錛屽嚭鐜頒簡榪欎釜閿欒鎻愮ず錛屾彁紺簍okyocabinet-1.4.47.tar.gz瀹夎涓嶆垚鍔燂紝瑙e喅鍔炴硶鏄紝瀹夎闇瑕佺殑杞歡鍖呭氨鍙互浜?

閿欒鎻愮ず涓錛?br />
configure: error: zlib.h is required
瑙e喅鏂規硶鏄細  # yum install zlib-devel
閿欒鎻愮ず浜岋細
configure: error: bzlib.h is required
瑙e喅鏂規硶鏄細  # yum install bzip2-devel

涓嬮潰榪涘叆鍒頒簡姝e紡鐜妭錛屼笂闈㈣鐨勪袱涓兘鏄負浜唄ttpsqs鐨勫畨瑁呭仛鐨勫墠鎻愬噯澶囷細
瀹夎錛歨ttpsqs-1.7.tar.gz
wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gz
tar zxvf httpsqs-1.7.tar.gz
cd httpsqs-1.7/
make
make install
cd ../

鑷蟲瀹夎宸茬粡緇撴潫錛?br />
[root@xoyo ~]# httpsqs -h
-l <ip_addr> 鐩戝惉鐨処P鍦板潃錛岄粯璁ゅ間負 0.0.0.0 
-p <num> 鐩戝惉鐨凾CP绔彛錛堥粯璁ゅ鹼細1218錛?/span>
-x <path> 鏁版嵁搴撶洰褰曪紝鐩綍涓嶅瓨鍦ㄤ細鑷姩鍒涘緩錛堜緥濡傦細/opt/httpsqs/data錛?/span>
-t <second> HTTP璇鋒眰鐨勮秴鏃舵椂闂達紙榛樿鍊鹼細3錛?/span>
-s <second> 鍚屾鍐呭瓨緙撳啿鍖哄唴瀹瑰埌紓佺洏鐨勯棿闅旂鏁幫紙榛樿鍊鹼細5錛?/span>
-c <num> 鍐呭瓨涓紦瀛樼殑鏈澶ч潪鍙跺瓙鑺傜偣鏁幫紙榛樿鍊鹼細1024錛?/span>
-m <size> 鏁版嵁搴撳唴瀛樼紦瀛樺ぇ灝忥紝鍗曚綅錛歁B錛堥粯璁ゅ鹼細100錛?/span>
-i <file> 淇濆瓨榪涚▼PID鍒版枃浠朵腑錛堥粯璁ゅ鹼細/tmp/httpsqs.pid錛?/span>
-a <auth> 璁塊棶HTTPSQS鐨勯獙璇佸瘑鐮侊紙渚嬪錛歮ypass123錛?/span>
-d 浠ュ畧鎶よ繘紼嬭繍琛?/span>
-h 鏄劇ず榪欎釜甯姪


[root@localhost ~]# ulimit -SHn 65535
[root@localhost ~]# httpsqs -d -p 1218 -x /data0/queue -a mypass123
[root@localhost ~]# ps -aux | grep httpsqs
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root 14378 0.0 0.0 396420 500 pts/0 S 10:44 0:00 [httpsqs: master process] /usr/bin/httpsqs -d -p 1218 -x /data0/queue -a mypass123
root 14379 0.0 0.0 406664 716 pts/0 Sl 10:44 0:00 [httpsqs: worker process] /usr/bin/httpsqs -d -p 1218 -x /data0/queue -a mypass123
root 14382 0.0 0.0 4356 756 pts/0 S+ 10:44 0:00 grep httpsqs
1銆乸ut a queue
[root@localhost ~]# curl "http://192.168.59.129:1218/?name=your_queue_name&opt=put&data=url_encoded_text_message&auth=mypass123"
HTTPSQS_PUT_OK

[root@localhost ~]#
濡傛灉鍏ラ槦鍒楁垚鍔燂紝榪斿洖錛?/span>
HTTPSQS_PUT_OK

銆銆濡傛灉鍏ラ槦鍒楀け璐ワ紝榪斿洖錛?/span>
HTTPSQS_PUT_ERROR

銆銆濡傛灉闃熷垪宸叉弧錛岃繑鍥烇細
HTTPSQS_PUT_END
2銆乬et a queue
http://192.168.59.129:1218/?name=your_queue_name&opt=get&auth=mypass123
url_encoded_text_message
3銆佹煡鐪嬮槦鍒楃姸鎬侊細
http://192.168.59.129:1218/?name=your_queue_name&opt=status&auth=mypass123
HTTP Simple Queue Service v1.7
------------------------------
Queue Name: your_queue_name
Maximum number of queues: 1000000
Put position of queue (1st lap): 5
Get position of queue (1st lap): 0
Number of unread queue: 5
4銆佷嬌鐢╦son鏍煎紡鏌ョ湅闃熷垪鍐呭

http://192.168.59.129:1218/?name=your_queue_name&opt=status_json&auth=mypass123
{"name":"your_queue_name","maxqueue":1000000,"putpos":5,"putlap":1,"getpos":1,"getlap":1,"unread":4}


鍙傝冩枃妗o細http://blog.s135.com/httpsqs/7/1/
http://code.google.com/p/httpsqs/



abin 2014-03-01 15:26 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲成人福利在线观看| 亚洲精品一品区二品区三品区| 亚洲色图古典武侠| 99国产精品免费视频观看| 久久精品国产亚洲AV麻豆不卡| 中国videos性高清免费| 国产亚洲高清不卡在线观看| 国产免费拔擦拔擦8X高清在线人| 亚洲AV一宅男色影视| 全部免费毛片在线播放| 亚洲一区精品视频在线| 精品久久洲久久久久护士免费 | 久久国产亚洲高清观看| 亚洲视频免费在线看| 亚洲人成网站18禁止久久影院| 最新欧洲大片免费在线| 亚洲高清乱码午夜电影网| avtt亚洲天堂| 国产精品视频白浆免费视频| 亚洲电影免费观看| 狼友av永久网站免费观看| 一级黄色片免费观看| 亚洲va在线va天堂va四虎| AV免费网址在线观看| 男人扒开添女人下部免费视频 | 久久亚洲sm情趣捆绑调教| 在线观看AV片永久免费| 美女黄色免费网站| 亚洲成人在线网站| 成人免费视频小说| 中文字幕的电影免费网站| 亚洲欧洲国产经精品香蕉网| 免费A级毛片在线播放不收费| 久章草在线精品视频免费观看| 亚洲国产成AV人天堂无码| 亚洲不卡无码av中文字幕| 在线观看免费中文视频| 国产精品久久亚洲一区二区| 亚洲VA中文字幕无码毛片| 日本无卡码免费一区二区三区| 三年片在线观看免费|