REDIS
https://redis.io/
Redis 3.2.9 is the latest stable version.
卸载redis
265 install: all
266 @mkdir -p $(INSTALL_BIN)
267 $(REDIS_INSTALL) $(REDIS_SERVER_NAME) $(INSTALL_BIN)
268 $(REDIS_INSTALL) $(REDIS_BENCHMARK_NAME) $(INSTALL_BIN)
269 $(REDIS_INSTALL) $(REDIS_CLI_NAME) $(INSTALL_BIN)
270 $(REDIS_INSTALL) $(REDIS_CHECK_RDB_NAME) $(INSTALL_BIN)
271 $(REDIS_INSTALL) $(REDIS_CHECK_AOF_NAME) $(INSTALL_BIN)
272 @ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_SENTINEL_NAME)
如果make执行时,带入make参数“-n”或“--just-print”,只是显示命令,但不会执行命令,这个功能很有利于我们调试我们的Makefile,看看我们书写的命令是执行起来是什么样子的或是什么顺序的。
而make参数“-s”或“--slient”则是全面禁止命令的显示。
ln -sf
-f, --force remove existing destination files
make
cd src
make install PREFIX=/usr/local/redis
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf
* Install the packages libc6-dev-i386 (also try g++-multilib).
* Try using the following command line instead of `make 32bit`:
`make CFLAGS="-m32 -march=native" LDFLAGS="-m32"`
让redis开机自启(SUSE下不知道这样搞)(COPY FROM http://www.cnblogs.com/it-cen/p/4295984.html)
vim /etc/rc.local
加入
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis-conf