python - 在 OS-X Lion 上安装 Graphite。如何配置apache2?

标签 python macos apache2 graphite

我正在尝试在本地配置 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/

相关文章:

python - 尝试从运行在 Linux 上的 django 查询 SQL Server - 无法打开 lib '/path/to/libtdsodbc.so'

python - 如何将列表 [a, b, c] 转换为 python slice index[ :a, :b :c]?

python - 加速 Dijkstra 的算法来解决 3D 迷宫

c - 隐藏终端,C + GTK

创建一个在运行时链接的dylib

apache - 如何检查 apache 模块版本?

django - 某些页面需要 ssl 的 django 应用程序的 apache 中的设置

python - 在 numpy/matplotlib 中以图形和数字方式求解线性二次方程组?

xcode - 在Mac OS 10.12上安装brew出现xcode许可协议(protocol)错误

php - 无效命令 'VirtualDocumentRoot'