我正在尝试设置新的遗物,我已按照他们给出的说明操作,但是最后一个命令给了我这个错误。
newrelic-admin run-program gunicorn wsgi:application
为什么?
2013-04-16 10:39:30 [4175] [INFO] Starting gunicorn 0.14.5
2013-04-16 10:39:30 [4175] [INFO] Listening at: http://127.0.0.1:8000 (4175)
2013-04-16 10:39:30 [4175] [INFO] Using worker: sync
2013-04-16 10:39:30 [4178] [INFO] Booting worker with pid: 4178
2013-04-16 10:39:30 [4178] [INFO] Worker exiting (pid: 4178)
2013-04-16 10:39:31 [4175] [INFO] Shutting down: Master
2013-04-16 10:39:31 [4175] [INFO] Reason: Worker failed to boot.
答案 0 :(得分:1)
按照此处的说明操作:
https://newrelic.com/docs/python/python-agent-integration
我假设我在Django中发布了它的Django应用程序。
添加
import newrelic.agent
newrelic.agent.initialize('/some/path/newrelic.ini')