Centos Install Graphite with Apache

来源:互联网 发布:矩阵制组织形式举例 编辑:程序博客网 时间:2024/06/07 12:49
cd /dashmon/
cd conf/
python -v
python
pip
pwd
cd conf/
pwd
yum search httpd
yum install httpd
yum install python-pip.noarch -y
yum install python-twisted -y
pip install django==1.5
pip install graphite-web
cd /opt/graphite/
mkdir /appl/process
mkdir /appl/scripts
chmod -R 774 /appl/scripts
chmod -R 774 /appl/process/
pip install tagging
pip install django-tagging
cd /opt/
cd graphite/
cd webapp/
cd graphite
cp local_settings.py.example local_settings.py
service httpd start
cd /opt/graphite/
cd conf/
cp graphite.wsgi.example graphite.wsgi
cd ../webapp/graphite
vim ./local_settings.py
cd /data/graphite/
mkdir storage
rm -rf storage/
cd /opt/graphite/
cd webapp/
cd graphite
vim ./local_settings.py
cd /logs/
mkdir graphite
cd graphite/
mkdir webapp
cd /opt/graphite/webapp/graphite
python ./manage.py syncdb
sudo yum install -y httpd wsgi
cp /opt/graphite/examples/example-graphite-vhost.conf  /etc/httpd/conf.d/graphite.conf
cd /etc/httpd/conf.d/
vim ./graphite.conf
service httpd restart
yum -y install mod_wsgi
service httpd restart
pwd
cd logs/
tail -3000f error_log
ldd /etc/httpd/modules/mod_wsgi.s
tail -3000f error_log
tail -3000f access_log
cd modules/
ldd mod_wsgi.so
q
service httpd stop
service httpd start
vim /etc/httpd/conf.d/
vim /etc/httpd/conf.d/graphite.conf
cd /var/run/
l
cd /etc/httpd/conf.d/
vim ./graphite.conf
vim ./wsgi.conf
chown apache:apache /logs/graphite/webapp/
cd /opt/graphite/
cd bin/
./run-graphite-devel-server.py /opt/graphite/
pip install daemonize
pip install 'Twisted<12.0'
./run-graphite-devel-server.py /opt/graphite/
vim ./checkdependencies.py
python ./checkdependencies.py
pip install whisper
./run-graphite-devel-server.py /opt/graphite/
service httpd stop
service httpd start
cd /logs/
cd graphite/
cd webapp/
vim ./exception.log
tail -3000f exception.log
cd /data/graphite/
cd storage/
mkdir rrd
mkdir whisper
history
0 0
原创粉丝点击