通过启动命令检查Redis服务器状态 sudo /etc/init.d/redis-server status
1 2 3 4 5 6 7 8 9 10 11 12 13 14
● redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2018-11-01 21:11:47 CST; 6min ago Docs: http://redis.io/documentation, man:redis-server(1) Main PID: 5715 (redis-server) Tasks: 4 (limit: 2293) CGroup: /system.slice/redis-server.service └─5715 /usr/bin/redis-server 127.0.0.1:6379
11月 01 21:11:47 RQ systemd[1]: Starting Advanced key-value store... 11月 01 21:11:47 RQ systemd[1]: redis-server.service: Can't open PID file …tory 11月 01 21:11:47 RQ systemd[1]: Started Advanced key-value store. Hint: Some lines were ellipsized, use -l to show in full.
6009:C 01 Nov 21:22:59.236 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 6009:C 01 Nov 21:22:59.236 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=6009, just started 6009:C 01 Nov 21:22:59.236 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 6009:M 01 Nov 21:22:59.237 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. 6009:M 01 Nov 21:22:59.237 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted. 6009:M 01 Nov 21:22:59.237 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. 6009:M 01 Nov 21:22:59.237 # Creating Server TCP listening socket *:6379: bind: Address already in use