重新加载配置文件
systemctl daemon-reload
启动
systemctl start redis
开机启动
systemctl enable redis
取消开机启动
systemctl disable redis
安装reids
[Unit]
Description=Redis
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/var/run/redis_5372.pid
ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/conf
PrivateTmp=true
[Install]
WantedBy=multi-user.target
网友评论