我已经用同样的方式安装了redis好几次(https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04),它工作得很好。这一次我是在我的DELL XPS 13笔记本电脑上完成的,按照所有步骤操作,当我尝试使用以下命令启动它时:
sudo systemctl status redis我得到了以下输出:
● redis.service - Redis In-Memory Data Store
Loaded: loaded (/etc/systemd/system/redis.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Okt 04 18:23:09 sasa-dell systemd[1]: Stopped Redis In-Memory Data Store.
Okt 04 18:23:09 sasa-dell systemd[1]: Started Redis In-Memory Data Store.
Okt 04 18:23:09 sasa-dell systemd[1]: redis.service: Main process exited, code=exited, status=203/EXEC
Okt 04 18:23:09 sasa-dell systemd[1]: redis.service: Control process exited, code=exited status=203
Okt 04 18:23:09 sasa-dell systemd[1]: redis.service: Unit entered failed state.
Okt 04 18:23:09 sasa-dell systemd[1]: redis.service: Failed with result 'exit-code'.
Okt 04 18:23:09 sasa-dell systemd[1]: redis.service: Service hold-off time over, scheduling restart.
Okt 04 18:23:09 sasa-dell systemd[1]: Stopped Redis In-Memory Data Store.
Okt 04 18:23:09 sasa-dell systemd[1]: redis.service: Start request repeated too quickly.
Okt 04 18:23:09 sasa-dell systemd[1]: Failed to start Redis In-Memory Data Store.任何帮助都将不胜感激。
发布于 2018-05-09 15:58:22
我收到了同样的错误,因为我忘了运行:
sudo make install在redis-稳定文件夹中
发布于 2018-09-07 14:39:03
首先转到redis.io站点
并打开终端,输入以下命令,仅粗体
apt-cache策略redis-服务器
sudo apt-get install redis-server -不要以这种方式安装
sudo apt-获取更新
sudo apt-get安装版本-essential tcl
mkdir redis -创建新文件夹
下载、解压并编译Redis:
wget tar xzf redis-4.0.11.tar.gz cd redis-4.0.11 make现在编译的二进制文件可以在src目录中找到。使用以下命令运行Redis:
如果完成,您可以看到"make test“命令
make test -运行命令
src/redis-server -您可以使用内置客户端与Redis进行交互:
src/redis-cli redis> 集合名称vadivel OK redis> get name "vadivel“
sudo make install -只要在任何目录上输入redis命令,就可以输入任何目录
https://stackoverflow.com/questions/46569975
复制相似问题