[Unit]
Description=Redis In-Memory Data Store
After=network.target
[Service]
User=dev
Group=dev
ExecStart=/data/redis/bin/redis-server /data/redis/redis.conf
ExecStop=/data/redis/bin/redis-cli -u 123456 shutdown
Restart=always
[Install]
WantedBy=multi-user.target
评论