一、Redis服务的启动过程
01:Redis服务进行初始化(启动); 02:从磁盘加载数据库; A:若之前有持久化的数据则会把数据给加载到内存; B:若之前没有持久化的数据那么启动会则没有数据; C:若启动时找到不之前持久化的数据文件,则没有数据; 03:Redis服务启动完成 04:准备接受客户端连接 21066:M 22 Feb 09:08:50.299 # Server initialized 21066:M 22 Feb 09:08:50.299 * DB loaded from disk: 0.000 seconds 21066:M 22 Feb 09:08:50.299 # Server initialized 21066:M 22 Feb 09:08:50.299 * Ready to accept connections 21066:M 22 Feb 09:08:50.299 * The server is now ready to accept connections at /data/redis/6379/run/redis.sock