您的位置:首页 > 运维架构 > Apache

Centos Install Graphite with Apache

2014-09-05 01:12 369 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: