在Python 3.4上设置newRelic的问题
作者:互联网
我在python3.4中的操作系统(Ubuntu 14.04)上安装了newrelic,然后通过许可证密钥生成newrelic.ini,然后运行以下命令:
sudo newrelic-admin run-program python backend/__main__.py
但是之后我得到这个错误:
Traceback (most recent call last):
File "/usr/local/bin/newrelic-admin", line 9, in <module>
load_entry_point('newrelic==2.50.0.39', 'console_scripts', 'newrelic-admin')()
File "/usr/local/lib/python3.4/dist-packages/newrelic-2.50.0.39/newrelic/admin/__init__.py", line 128, in main
callback(sys.argv[2:])
File "/usr/local/lib/python3.4/dist-packages/newrelic-2.50.0.39/newrelic/admin/run_program.py", line 96, in run_program
os.execl(program_exe_path, *args)
File "/usr/lib/python3.4/os.py", line 489, in execl
execv(file, args)
PermissionError: [Errno 13] Permission denied
我已经用sudo运行了它,但是它还是抛出了拒绝权限!为什么会发生这种情况,我该如何预防呢?任何帮助,将不胜感激.
解决方法:
您必须像这样在项目中更改bootstarp文件的权限:
sudo chmod 755 YOUR_FILE.py
标签:newrelic,python-3-x,newrelic-platform,python 来源: https://codeday.me/bug/20191120/2043160.html