Redis.service配置文件报2741错误
报错原因:redis.service配置文件中的该字段有回车符
ExecStart=/usr/local/mytools/redis-5.0.0/src/redis-server
/usr/local/mytools/redis-5.0.0/redis.conf
处理方法:编辑配置文件把回车符去掉,用空格替代;
[Unit]
Description=Redis
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/usr/local/mytools/redis-5.0.0/src/redis-server /usr/local/mytools/redis-5.0.0/redis.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target