标签:grafana
安装 grafana
sudo rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch vi /etc/yum.repos.d/elasticsearch.repo [elasticsearch-1.0] name=Elasticsearch repository for 1.0.x packages baseurl=http://packages.elasticsearch.org/elasticsearch/1.0/centos gpgcheck=1 gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch enabled=1 sudo yum install nodejs npm java-1.7.0-openjdk elasticsearch -y sudo npm install -g karma
cd /home/test/software/tar/ wget http://grafanarel.s3.amazonaws.com/grafana-1.8.0.tar.gz tar zxvf grafana-1.8.0.tar.gz -C /home/test/ mv /home/test/grafana-1.8.0/ /home/test/grafana
cd /home/test/grafana/ cp config.sample.js config.js vi config.js
vi /etc/elasticsearch/elasticsearch.yml 添加如下一行 script.disable_dynamic: true # 手动关闭ES远程执行脚本的功能,防止被挂马
一款设置CORS(Cross-Origin Resource Sharing)标头的应用,基于XmlHttpRequest,对管理Django应用中的跨域请求非常有帮助
sudo pip install django-cors-headers configobj vi /home/test/graphite/webapp/graphite/app_settings.py INSTALLED_APPS里面添加corsheaders, MIDDLEWARE_CLASSES里面添加’corsheaders.middleware.CorsMiddleware’
sudo vi /etc/httpd/conf.d/graphite-vhost.conf
sudo vi /etc/httpd/conf.d/grafana.conf sudo htpasswd -c /etc/httpd/conf.d/grafana.htpasswd grafana # grafana12345
sudo /sbin/chkconfig --add httpd sudo /sbin/chkconfig httpd on sudo /etc/init.d/httpd reload sudo /sbin/chkconfig --add elasticsearch sudo service elasticsearch start
本文出自 “~” 博客,谢绝转载!
标签:grafana
原文地址:http://3258715.blog.51cto.com/3248715/1736905