Centos Install Graphite with Apache

本文详细介绍了如何在服务器上部署和配置Graphite监控系统的过程,包括安装必要的软件包如HTTPD、Python及其相关库,设置Graphite的工作目录,以及配置Web服务等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值