我看到的所有教學都是用eval 指令後面接一段lua腳本,我嘗試eval <lua檔> <參數(shù)>時,例如:eval hello.lua 0
提示
「 ERR Error compiling script (new function): user_script:1: '=' expected near 'end'”
即使我的hello.lua檔案中只有一句 return "hello world"
擁有18年軟件開發(fā)和IT教學經(jīng)驗。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項目經(jīng)理、高級軟件工程師等職務。 網(wǎng)絡人氣名人講師,...
執(zhí)行時應該用--eval,而不是eval
且注意eval指令是從2.6.0版本開始才加入到redis中的