vim /usr/lib/systemd/system/redis.service
[Unit]
Description=Redis server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/src/redis-5.0.3/src/redis-server /usr/local/src/redis-5.0.3/redis.conf
ExecStop=/usr/local/src/redis-5.0.3/src/redis-cli shutdown
Restart=always
[Install]
WantedBy=multi-user.target