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
"