centos etcd 启动失败

chmod -R 777 /var/lib/etcd

systemctl daemon-reload

cat /etc/systemd/system/etcd.service

"

[Unit]
Description=Etcd Server
After=network.target
[Service]
Type=notify
WorkingDirectory=/var/lib/etcd/
EnvironmentFile=-/etc/etcd/etcd.conf
User=etcd
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/bin/etcd"
Restart=on-failure
LimitNOFILE=6006
[Install]
WantedBy=multi-user.targe

"

转载于:https://www.cnblogs.com/S--S/p/10420438.html

你可能感兴趣的:(centos etcd 启动失败)