Error in starting redis
# Creating Server TCP listening socket *:6379: bind: Address already in use
error reason
6379 address is already in use (6379 is the default port of redis)
solutions
Use the command to find the process that occupies the port number:
ps -ef | grep -i redis
Get information similar to the following
501 2267 1 0 3 119 ?? 8:17.40 redis-server *:6379
501 48677 48662 0 3:17下午 ttys002 0:00.00 grep -i redis
Kill the process
kill -9 2267
Restart redis
redis-server
It’s done
48678:C 24 Jan 15:18:20.870 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
48678:C 24 Jan 15:18:20.871 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=48678, just started
48678:C 24 Jan 15:18:20.871 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
48678:M 24 Jan 15:18:20.873 * Increased maximum number of open files to 10032 (it was originally set to 256).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 4.0.11 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 48678
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
48678:M 24 Jan 15:18:20.889 # Server initialized
48678:M 24 Jan 15:18:31.003 * DB loaded from disk: 10.114 seconds
48678:M 24 Jan 15:18:31.003 * Ready to accept connections
Similar Posts:
- Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- Error reported in the celery log of the project: redis.exceptions.connectionerror failed to connect with redis
- CentOS8 Install redis-6.0.6 make test:“ You need tcl 8.5 or newer in order to run the Redis test“
- This account is currently not available [How to Solve]
- Gitlab 403 Forbidden error [How to Solve]
- Redis service failed to start, prompt: redis server: command not found
- Linux transport error 202: bind failed: Address already in use
- [Solved] Redis Connect Error: ERR Client sent AUTH, but no password is set
- Filebeat output redis i/o timeout [How to Solve]
- Error: Flask Address already in use [How to Solve]