无法重置Redis的默认端口

时间:2019-11-11 23:21:53

标签: ubuntu redis

我正在玩Redis,并在redis.config中设置了非标准端口。工作正常。现在,我想通过设置返回到:6379: redis.config中的port 6379。然后,我停止并使用以下命令启动Redis服务器:

sudo systemctl stop redis
redis-server

但是我收到此错误:

me@pop-os:~$ redis-server
4597:C 12 Nov 2019 10:14:37.232 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
4597:C 12 Nov 2019 10:14:37.232 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=4597, just started
4597:C 12 Nov 2019 10:14:37.232 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
4597:M 12 Nov 2019 10:14:37.232 * Increased maximum number of open files to 10032 (it was originally set to 1024).
4597:M 12 Nov 2019 10:14:37.233 # Could not create server TCP listening socket *:6379: bind: Address already in use

但是我仍然可以使用以下命令登录旧端口:

redis-server -p OLD_PORT

我尝试重新启动和卸载redis-server。无论做什么,我的旧设置都会继续存在。

  • Redis服务器版本:5.0.5
  • 操作系统:Pop!_OS / Ubuntu 19.10

0 个答案:

没有答案