![d3ccce828b483d46b9bb92db8be65a3b.png](https://i-blog.csdnimg.cn/blog_migrate/481c0722f03c686169626b2eade90d44.jpeg)
这一节,我们研究的目光聚焦在redis服务器的启动过程。具体研究启动过程做了哪些工作。
启动redis命令:src/redis-server redis.conf
30408:C 13 Jan 2021 17:29:52.662 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
30408:C 13 Jan 2021 17:29:52.662 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=30408, just started
30408:C 13 Jan 2021 17:29:52.662 # Configuration loaded 第二步 加载配置
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.4 (00000000/0) 64 bit
.-`` .-```. ```/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 redis服务器的端口号
| `-._ `._ / _.-' | PID: 30408 redis的进程号
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
30408:M 13 Jan 2021 17:29:52.664 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
30408:M 13 Jan 2021 17:29:52.664 # Server initialized 第三步 执行initServer函数