sudo chmod -R 775 /etc/elasticsearch/
cd /etc/elasticsearch/
sudo vim elasticsearch.yml

重启elasticserch 服务器
sudo -i service elasticsearch restart

sudo chmod -R 775 /etc/elasticsearch/
cd /etc/elasticsearch/
sudo vim elasticsearch.yml
重启elasticserch 服务器
sudo -i service elasticsearch restart