1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| [root@nues ~]# systemctl daemon-reload [root@nues ~]# systemctl start redis [root@nues ~]# systemctl enable redis Created symlink from /etc/systemd/system/multi-user.target.wants/redis.service to /usr/lib/systemd/system/redis.service. [root@nues ~]# systemctl status redis ● redis.service - Redis persistent key-value database Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled) Active: active (running) since 二 2021-09-14 23:29:40 EDT; 10s ago Main PID: 102290 (redis-server) CGroup: /system.slice/redis.service └─102290 /usr/local/redis/bin/redis-server *:6379
9月 14 23:29:40 nues systemd[1]: Starting Redis persistent key-value database... 9月 14 23:29:40 nues systemd[1]: Started Redis persistent key-value database. 9月 14 23:29:46 nues systemd[1]: [/usr/lib/systemd/system/redis.service:7] Unknown lvalue 'ExecRepload' in section 'Service' [root@nues ~]# lsof -i:6379 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME redis-ser 102290 appadmin 6u IPv6 450647 0t0 TCP *:6379 (LISTEN) redis-ser 102290 appadmin 7u IPv4 450648 0t0 TCP *:6379 (LISTEN) [root@nues ~]# ss -tnlp | grep 6379 LISTEN 0 128 *:6379 *:* users:(("redis-server",pid=102290,fd=7)) LISTEN 0 128 :::6379 :::* users:(("redis-server",pid=102290,fd=6))
|