1. 程式人生 > 資料庫 >redis 單元控制檔案

redis 單元控制檔案

[Unit]
Description=Redis 6.0.9
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/redis/redis-6.0.9/src/redis-server /usr/local/redis/redis-6.0.9/src/redis.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target