摘要: (1) redis环境搭建(2) hiredis下载地址及C API github(3) hiredis安装我是把libhiredis.so放到/usr/local/lib/中,把hiredis.h放到/usr/local/inlcude/hiredis/中的(4)redis启动关闭 服务启动:redis-server 客户端连接:redis-cli 客户端关闭:redis-cli shutdown(5) hiredis测试: 1 #include 2 #include 3 int main() 4 { 5 redisContext *conn ... 阅读全文
posted @ 2013-07-02 17:12 lpshou 阅读(18584) 评论(0) 推荐(1) 编辑
摘要: /usr/bin/ld: i386:x86-64 architecture of input file `command.o' is incompatible with i386 output出现这种警告的时候的时候,运行程序老是段错误,要加-m32,就好了。gcc -m32 -o usehello_static usehello.c libhello.a原因引用的库是 32位的,我是用的64位的系统参考:https://github.com/Liutos/LiutCL/issues/6 阅读全文
posted @ 2013-07-02 10:26 lpshou 阅读(9651) 评论(0) 推荐(0) 编辑