我看到的所有教程都是用eval 指令后面接一段lua脚本,我尝试eval <lua文件> <参数>时,例如:eval hello.lua 0提示“ ERR Error compiling script (new function): user_script:1: '=' expected near 'end'”即使我的hello.lua文件中只有一句 return "hello world"
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Excuse my ignorance. Isn't Redis used for caching? Can it still be used to run scripts? In addition, the error message said that the end of the statement should be = sign
You should use --eval instead of eval when executing
And please note that the eval command was only added to redis starting from version 2.6.0
Excuse my ignorance. Isn't Redis used for caching? Can it still be used to run scripts?
In addition, the error message said that the end of the statement should be = sign
You should use --eval instead of eval when executing
And please note that the eval command was only added to redis starting from version 2.6.0