繁体   English   中英

在Ubuntu 14错误上以Apache .4安装石墨

[英]Install graphite with apache .4 on ubuntu 14 error

mod_wsgi Exception occurred processing WSGI script '/usr/share/graphite-web/graphite.wsgi'

我仅将apache-graphite.conf复制到/ etc / apache / sites-available,为什么它抱怨石墨.wsgi?

apache-graphite.conf的内容:

import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'

import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()


from graphite.logger import log
log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid())
import graphite.metrics.search

pepper.wsgi是由您的apache网络服务器调用的wsgi应用程序 ,用于响应传入的请求。

apache-graphite.conf站点定义了一个运行django的wsgi应用程序,它将使用石墨代码处理请求。 我猜它看起来更像这样: https : //github.com/graphite-project/graphite-web/blob/0.9.x/examples/example-graphite-vhost.conf

石墨.wsgi通常看起来像: https : //github.com/graphite-project/graphite-web/blob/0.9.x/conf/graphite.wsgi.example

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM