How to solve this problem? /bin/sh: 1: redis-server: not found

/bin/sh: 1: redis-server: not found
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/amol/workspace/amol/bench-repo/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/amol/workspace/amol/bench-repo/bench/commands/”, line 30, in init
python = python)
File “/home/amol/workspace/amol/bench-repo/bench/”, line 89, in init
File “/home/amol/workspace/amol/bench-repo/bench/config/”, line 39, in generate_config
“redis_version”: get_redis_version(),
File “/home/amol/workspace/amol/bench-repo/bench/config/”, line 59, in get_redis_version
version_string = subprocess.check_output(‘redis-server --version’, shell=True)
File “/usr/lib/python2.7/”, line 574, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘redis-server --version’ returned non-zero exit status 127

When i use bench init frappe-bench && cd frappe-bench get an error…
so tell me how to resolve it

if you have not installed redis then install redis-server

sudo apt-get install redis-server


thanks a lot for always helping me thank you so much… finally it works