redis.service
作者:互联网
[Unit]
Description=Redis
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
User=daemon
Group=daemon
Type=forking
PIDFile=/var/run/redis_6511.pid
ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/redis_6511.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
标签:bin,target,service,6511,redis,kill,local 来源: https://blog.csdn.net/alliswell95/article/details/89922380