问题描述
Jun 21 07:18:01 pigsty systemd: consul.service holdoff time over, scheduling restart.
Jun 21 07:18:01 pigsty systemd: Stopped "HashiCorp Consul - A service mesh solution".
Jun 21 07:18:01 pigsty systemd: Started "HashiCorp Consul - A service mesh solution".
Jun 21 07:18:01 pigsty consul: ==> Error getting info on data_dir: stat /data/consul: permission denied
Jun 21 07:18:01 pigsty systemd: consul.service: main process exited, code=exited, status=1/FAILURE
Jun 21 07:18:01 pigsty systemd: Unit consul.service entered failed state.
Jun 21 07:18:01 pigsty systemd: consul.service failed.
解决方案
sudo chmod 777 /data