Failed to start etcd.service: Unit is not loaded properly: Invalid argument

systemctl start etcd使用此命令启动etcd服务时,报错Failed to start etcd.service: Unit is not loaded properly: Invalid argument

使用systemctl status etcd.service -l命令查看报错

Failed to start etcd.service: Unit is not loaded properly: Invalid argument_第1张图片

 

报错内容:etcd.service lacks both ExecStart= and ExecStop= setting. Refusing.

解决方案:

修改etcd.service,去掉“\”换行符

修改后:

Failed to start etcd.service: Unit is not loaded properly: Invalid argument_第2张图片

启动成功:

Failed to start etcd.service: Unit is not loaded properly: Invalid argument_第3张图片

 

 

你可能感兴趣的:(etcd,linux,运维)