[root@Redis-Ubuntu-1804-p21:~]# systemctl enable --now redis_6379.service redis_6380.service redis_6381.service
Created symlink /etc/systemd/system/multi-user.target.wants/redis_6379.service → /etc/systemd/system/redis_6379.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis_6380.service → /etc/systemd/system/redis_6380.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis_6381.service → /etc/systemd/system/redis_6381.service.
[root@Redis-Ubuntu-1804-p21:~]# ps -ef | grep redis-server
redis 10491 1 0 00:24 ? 00:00:00 /app/redis/bin/redis-server 0.0.0.0:6381
redis 10492 1 0 00:24 ? 00:00:00 /app/redis/bin/redis-server 0.0.0.0:6380
redis 10493 1 0 00:24 ? 00:00:00 /app/redis/bin/redis-server 0.0.0.0:6379
root 10512 1247 0 00:25 pts/0 00:00:00 grep --color=auto redis-server
[root@Redis-Ubuntu-1804-p21:~]# ss -ntl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 127.0.0.1:6010 0.0.0.0:*
LISTEN 0 128 127.0.0.1:6011 0.0.0.0:*
LISTEN 0 128 0.0.0.0:6379 0.0.0.0:*
LISTEN 0 128 0.0.0.0:6380 0.0.0.0:*
LISTEN 0 128 0.0.0.0:6381 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 128 [::1]:6010 [::]:*
LISTEN 0 128 [::1]:6011 [::]:*
[root@Redis-Ubuntu-1804-p21:~]#
[root@Redis-Ubuntu-1804-p21:~]# tree /app/redis/app/redis├── bin│ ├── redis-benchmark│ ├── redis-check-aof│ ├── redis-check-rdb│ ├── redis-cli│ ├── redis-sentinel -> redis-server│ └── redis-server├── data│ └── dump_6379.rdb├── etc│ ├── redis_6379.conf│ ├── redis_6380.conf│ └── redis_6381.conf├── log│ ├── redis_6379.log│ ├── redis_6380.log│ └── redis_6381.log└── run ├── redis_6379.pid ├── redis_6380.pid └── redis_6381.pid
5 directories, 16 files[root@Redis-Ubuntu-1804-p21:~]#
|