|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!1、装置apr
下载:http://apache.dataguru.cn//apr/apr-1.5.1.tar.gz
- tarzxvfapr-1.5.1.tar.gzcdapr-1.5.1viconfigure找到$RM“$cfgfile”这行删失落./configure--prefix=/usr/local/aprmakemakeinstall
复制代码
2、装置apr-util
下载:http://mirror.bit.edu.cn/apache//apr/apr-util-1.5.4.tar.gz
- tarzxvfapr-util-1.5.4.tar.gzcdapr-util-1.5.4./configure--with-apr=/usr/local/aprmakemakeinstall
复制代码
3、装置hiredis
下载:https://github.com/redis/hiredis/archive/master.zip
解压后上传到办事器
- cdhiredis-mastermakemkdir/usr/lib/hirediscplibhiredis.so/usr/lib/hirediscplibhiredis.so/usr/lib/cplibhiredis.so/usr/lib64/mkdir/usr/include/hirediscphiredis.h/usr/include/hiredis
复制代码
4、装置lib_mysqludf_json
下载:https://github.com/mysqludf/lib_mysqludf_json/archive/master.zip
压后上传到办事器
- cdlib_mysqludf_json-masterrmlib_mysqludf_json.sogcc$(mysql_config--cflags)-shared-fPIC-olib_mysqludf_json.solib_mysqludf_json.ccplib_mysqludf_json.so/usr/local/mysql/lib/plugin/
复制代码
5、装置mysql2redis
下载:https://github.com/dawnbreaks/mysql2redis/archive/master.zip
压后上传到办事器
- cdmysql2redis-masterviMakefile(交换以下代码)PLUGINDIR="/usr/local/mysql/lib/plugin"INCLUDE=`/usr/local/mysql/bin/mysql_config--include`-I/usr/local/include-I/usr/local/apr/include-I./LIBS=-lhiredis-L$(PLUGINDIR)-L/usr/local/apr/lib-lapr-1-laprutil-1compile:gcc-Werror-O2-g$(INCLUDE)-I.-fPIC-shared-rdynamiclib_mysqludf_redis.c$(LIBS)-olib_mysqludf_redis_v2.soinstall:gcc-Werror-O2-g$(INCLUDE)-I.-fPIC-shared-rdynamiclib_mysqludf_redis.c$(LIBS)-o${PLUGINDIR}/lib_mysqludf_redis_v2.souninstall:rm-f$(PLUGINDIR)/lib_mysqludf_redis_v2.soclean:rm-f*~rm-f*.sorm-f*.out加入保留makecplib_mysqludf_redis_v2.so/usr/local/mysql/lib/plugin/
复制代码
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们! |
|