redis在linux下自启命令
redis在linux下自启命令
[Unit] Description=redis-server After=network.target [Service] Type=forking ExecStart=/usr/local/bin/redis-server /software/redis-4.0.9/redis.conf ExecStop=/usr/local/bin/redis-cli shutdown PrivateTmp=true [Install] WantedBy=multi-user.target