用法
port 6379
用途
指定redis监听的端口。
注意事项:
1.默认是6379
2.配置为0
时将不监听任何端口(也就是服务没有启动)。
$ /usr/bin/redis-server redis.conf
9518:C 19 Nov 2021 09:10:35.342 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
9518:C 19 Nov 2021 09:10:35.342 # Redis version=6.2.5, bits=64, commit=00000000, modified=0, pid=9518, just started
9518:C 19 Nov 2021 09:10:35.342 # Configuration loaded
9518:M 19 Nov 2021 09:10:35.343 * Increased maximum number of open files to 10032 (it was originally set to 256).
9518:M 19 Nov 2021 09:10:35.343 * monotonic clock: POSIX clock_gettime
9518:M 19 Nov 2021 09:10:35.343 # Configured to not listen anywhere, exiting.
3.互联网号码分配局
(英語:Internet Assigned Numbers Authority
,缩写IANA
)
4.815344
摘录log
原生注释
# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is specified Redis will not listen on a TCP socket.
网友评论