root@ubuntudaonelab:~# apt update
...
root@ubuntudaonelab:~# service --status-all | grep +
...
root@ubuntudaonelab:~# apt install redis-server
...
root@ubuntudaonelab:~# systemctl status redis
[0m redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-04-24 20:10:12 KST; 3min 16s ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 218931 (redis-server)
      Tasks: 5 (limit: 4614)
     Memory: 2.9M
     CGroup: /system.slice/redis-server.service
             붴218931 /usr/bin/redis-server 127.0.0.1:6379

Apr 24 20:10:12 ubuntudaonelab.com systemd[1]: Starting Advanced key-value store...
Apr 24 20:10:12 ubuntudaonelab.com systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: Operation not pe>
Apr 24 20:10:12 ubuntudaonelab.com systemd[1]: Started Advanced key-value store.

root@ubuntudaonelab:~# netstat -anop | grep redis
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      218931/redis-server  off (0.00/0/0)
tcp6       0      0 ::1:6379                :::*                    LISTEN      218931/redis-server  off (0.00/0/0)

root@ubuntudaonelab:~# vi /etc/redis/redis.conf 
-----------------------------------------------------------------------
supervised systemd


-----------------------------------------------------------------------
root@ubuntudaonelab:~# systemctl restart redis

접속허용IP(bind), 포트(port), 접속비밀번호(requirepass) 등 설정

root@ubuntudaonelab:/# vi /etc/redis/redis.conf