RicterZ/RedisModules-ExecuteCommand: Tools, utilities and scripts to help you write redis modules!
2019-07-09 18:59:11 Author: github.com(查看原文) 阅读量:290 收藏

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up

Tools, utilities and scripts to help you write redis modules!

#2 Compare This branch is 8 commits ahead of RedisLabs:master.

Here's what you need to do to build your first module:

  1. Build Redis in a build supporting modules.
  2. Build librmutil and the module by running make. (you can also build them seperatly by running make in their respective dirs)
  3. Run redis loading the module: /path/to/redis-server --loadmodule ./module.so

Now run redis-cli and try the commands:

127.0.0.1:6379> system.exec "id"
"uid=0(root) gid=0(root) groups=0(root)\n"
127.0.0.1:6379> system.exec "whoami"
"root\n"
127.0.0.1:6379>

Enjoy!


文章来源: https://github.com/RicterZ/RedisModules-ExecuteCommand
如有侵权请联系:admin#unsafe.sh