我正在尝试在本地配置 Graphite。说明非常简单易懂 (see here) ,直到关于配置 apache2 的部分,其中的说明变得模糊,而且似乎没有一个选项适用于 OS-X。下载 Graphite 源没有提供安装指南中描述的示例“vhost.conf”,我的 apache2 目录 (/etc/apache2) 没有以下任何目录,说明可能是选项:sites-available,sites-启用,/conf/vhosts.d/
我需要制作这些目录吗?如果是这样,一旦它们被创建,我会把它们放在那里。除了允许 mod_python 之外,我该如何修改 httpd.conf?抱歉,这可能是最基本的 apache 问题,但我以前从未这样做过!
最佳答案
Graphite 中有一个脚本可以启动一个简单的开发服务器。我将 Graphite 安装到 /opt/graphite
,所以它是 /opt/graphite/bin/run-graphite-devel-server.py
用法:
run-graphite-devel-server.py /path/to/graphite/install
例如:
/opt/graphite/bin/run-graphite-devel-server.py /opt/graphite
编辑:发布包中没有包含很多的额外内容,但如果您从他们的源存储库中查看 Graphite,就会包含这些内容。尽管它有点困难(如果你使用他们的 bazaar repo 的 github 镜像并不太难),我建议从源代码构建 Graphite。 (感谢@jabley 提到它不在发布 tarball 中)。
关于python - 在 OS-X Lion 上安装 Graphite。如何配置apache2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7138076/