httpsqs官方网站:http://code.google.com/p/httpsqs/
参考blog:http://blog.s135.com/httpsqs/
安装tokyocabinet-1.4.47.tar.gz时,提示:
tcutest.c:31: error: conflicting types for ‘iprintf’
\cygwin\usr\include/stdio.h:259: error: previous declaration of ‘iprintf’ was
here
修改iprintf为_iprintf
static void _iprintf(const char *format, ...);
make报错:
tcutest.c:117: error: conflicting types for ‘iprintf’
\cygwin\usr\include/stdio.h:259: error: previous declaration of ‘iprintf’ was
here
修改方法iprintf为_iprintf
/* print formatted information string and flush the buffer */
static void _iprintf(const char *format, ...){
va_list ap;
va_start(ap, format);
vprintf(format, ap);
fflush(stdout);
va_end(ap);
}
需要修改文件:
tcutest.c
tcumttest.c
tcucodec.c
tchtest.c
tchmttest.c
tcbtest.c
tcbmttest.c
tcftest.c
tcfmttest.c
tcttest.c
tctmttest.c
tcatest.c
tcamttest.c
之后安装成功!
安装httpsqs时报错:
install -m 4755 -o root httpsqs /usr/bin
install: invalid user `root'
修改Makefile
install $(INSTALL_FLAGS) -m 4755 -o Administrator httpsqs $(DESTDIR)/usr/bin
httpsqs安装成功!
$ make install
install -m 4755 -o Administrator httpsqs /usr/bin!
输入httpsqs -h
$ httpsqs -h
--------------------------------------------------------------------------------
------------------
HTTP Simple Queue Service - httpsqs v1.7 (April 14, 2011)
Author: Zhang Yan (http://blog.s135.com), E-mail: [email protected]
This is free software, and you are welcome to modify and redistribute it under t
he New BSD License
-l
-p
-x
-t
-s
-c
-m
-i
-a
-d run as a daemon
-h print this help and exit
Use command "killall httpsqs", "pkill httpsqs" and "kill `cat /tmp/httpsqs.pid`"
to stop httpsqs.
Please note that don't use the command "pkill -9 httpsqs" and "kill -9 PID of ht
tpsqs"!
Please visit "http://code.google.com/p/httpsqs" for more help information.
--------------------------------------------------------------------------------
------------------
-l
-p
-x
-t
-s
-c
-m
-i
-a
-d 以守护进程运行
-h 显示这个帮助