用法
port 6379
用途
指定redis監(jiān)聽的端口糯彬。
注意事項:
1.默認(rèn)是6379
2.配置為0
時將不監(jiān)聽任何端口(也就是服務(wù)沒有啟動)。
$ /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.互聯(lián)網(wǎng)號碼分配局
(英語: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.