D:\Develop\redis-2.8.12>redis-server redis.windows.conf _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.12 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 6736 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [6736] 10 Aug 22:01:22.247 # Server started, Redis version 2.8.12 [6736] 10 Aug 22:01:22.248 * The server is now ready to accept connections on port 6379 然后可以使用自带的客户端工具进行测试。 双击打开 redis-cli.exe , 如果不报错,则连接上了本地服务器,然后测试,比如 set命令,get命令: 127.0.0.1:6379> set tiemao http://blog.csdn.net/renfufei OK 127.0.0.1:6379> get tiemao "http://blog.csdn.net/renfufei" 127.0.0.1:6379> 这应该很好理解,连接上了本机的6379端口。如果需要帮助,可以在 cli窗口中输入 help查看,例如: [plain] 127.0.0.1:6379> help redis-cli 2.8.12 Type: "help @<group>" to get a list of commands in <group> "help <command>" for help on <command> "help <tab>" to get a list of possible help topics "quit" to exit 127.0.0.1:6379> help @string 安装: redis-server.exe --service-install redis.windows.conf --loglevel verbose 卸载: redis-server --service-uninstall 启动: redis-server.exe redis.windows.conf

分类: web

标签: