使用自制软件来安装Redis但是当我尝试ping Redis时会显示此错误.
Could not connect to Redis at 127.0.0.1:6379: Connection refused
Run Code Online (Sandbox Code Playgroud)
注意: 我尝试关闭防火墙并编辑conf文件也不行.我使用macOS Sierra和自制版本1.1.11
我正在尝试杀死以 --daemonize yes 启动的 redis 服务器
我觉得这应该很容易,但我无法根据标准方法成功杀死它。我正在使用通过以下说明安装的 Redis 3.2:https : //www.hugeserver.com/kb/install-redis-debian-ubuntu/
$ redis-server --daemonize yes
1550:C 13 Mar 05:54:55.436 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1550:C 13 Mar 05:54:55.437 # Redis version=4.0.8, bits=64, commit=00000000, modified=0, pid=1550, just started
1550:C 13 Mar 05:54:55.437 # Configuration loaded
$ kill 1550
-bash: kill: (1550) - No such process
$ kill -9 1550
-bash: kill: (1550) - No such process
$ killall redis-server
redis-server(1181): Operation not permitted
redis-server: no process found
$ /etc/init.d/redis-server …Run Code Online (Sandbox Code Playgroud)