第一次使用apt下载redis-server启动时会报一个错
59643:C 23 Aug 2021 00:34:07.355 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
59643:C 23 Aug 2021 00:34:07.355 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=59643, just started
59643:C 23 Aug 2021 00:34:07.355 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
59643:M 23 Aug 2021 00:34:07.355 * Increased maximum number of open files to 10032 (it was originally set to 1024).
59643:M 23 Aug 2021 00:34:07.355 # Could not create server TCP listening socket *:6379: bind: Address already in use
这是由于后台已经启动了redis,需要把当前运行的redis-server关闭掉
/etc/init.d/redis-server stop
重新启动redis服务器
redis-server