我下面這個簡單的教程嘗試一個簡單的Lua中錯誤而執行LUA腳本的Redis服務器
http://www.redisgreen.net/blog/2013/03/18/intro-to-lua-for-redis-programmers/
我創建了這幾行簡單的hello.lua文件
local msg = "Hello, world!"
return msg
我試着運行簡單命令
EVAL "$(cat /Users/rsingh/Downloads/hello.lua)" 0
A第二我收到此錯誤
(error) ERR Error compiling script (new function): user_script:1: unexpected symbol near '$'
我找不到什麼是錯在這裏,我一直沒能找到誰遇到這一點。
任何幫助將深表謝意。
非常感謝。這解決了它。 –