2024-05-10 23:32:00 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Redis Server
|
|
|
|
Documentation=https://redis.io
|
|
|
|
After=network-online.target firewalld.service
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2024-06-14 22:12:00 +08:00
|
|
|
Group=root
|
|
|
|
User=root
|
2024-05-10 23:32:00 +08:00
|
|
|
ExecStart=/opt/redis/bin/redis-server /opt/redis/redis.conf
|
|
|
|
Restart=always
|
2024-06-14 22:12:00 +08:00
|
|
|
PrivateTmp=true
|
2024-05-10 23:32:00 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|