Example error:
root@tutorialspots1:~# luarocks install lua-resty-redis-cluster Installing https://luarocks.org/lua-resty-redis-cluster-1.1-0.rockspec Cloning into 'lua-resty-redis-cluster'... fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information. Error: Failed cloning git repository.
Fix: run this command first: git config --global url."https://".insteadOf git://
Done, retry:
root@tutorialspots1:~# luarocks install lua-resty-redis-cluster Installing https://luarocks.org/lua-resty-redis-cluster-1.1-0.rockspec Cloning into 'lua-resty-redis-cluster'... remote: Enumerating objects: 15, done. remote: Counting objects: 100% (15/15), done. remote: Compressing objects: 100% (13/13), done. remote: Total 15 (delta 1), reused 6 (delta 0), pack-reused 0 Unpacking objects: 100% (15/15), 19.00 KiB | 204.00 KiB/s, done. Note: switching to '7d47e51d98dd141d099333adb602ebd4454c10f7'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false lua-resty-redis-cluster 1.1-0 is now installed in /usr/local (license: Apache License 2.0)
now, we have two files xmodem.lua
rediscluster.lua
in folder /usr/local/share/lua/5.1/resty/