如何更改Graphite web-app的默认端口?

如何更改Graphite web-app的默认端口?

问题描述:

我试着在/opt/graphite/webapp/graphite/local_settings.py文件中搜索。但我没有找到如何更改默认端口80. 其实,我想在默认安装在80端口的同一台机器上安装OMD。如何更改Graphite web-app的默认端口?

Link for graphite doc

推荐的方式服务的webapp是WSGI后端

使用从http://graphite.readthedocs.io/en/latest/install.html#dependencies

一个WSGI服务器和Web服务器。流行的选择是:

  • 阿帕奇与mod_wsgi的
  • gunicorn nginx的
  • uWSGI nginx的

所以相应地更改端口配置服务器中的虚拟主机(nginx的或Apache或其他)你选择收听所需的端口。

如果您想通过Django的runserver命令服务只需指定端口

/manage.py runserver 0.0.0.0:<your_port>