centos etcd 启动失败

时间:2023-12-13 23:15:14

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

"