Newrelic nginx 플러그인 설치(python 문제)

Newrelic nginx 플러그인 설치(python 문제)

이 플러그인설치가 허용되지 않아 nginx로부터 도움을 받기 위해 글을 쓰려고 했습니다.(좋은 경험은 아닙니다). 플러그인에는 Python용 데몬이 설치되어 있지 않다고 나와 있지만 실제로는 설치되어 있습니다(믿습니다). 나는 지원을 위해 글을 쓰려고 노력했지만 nginx의 사람들은 매우 무례했고 나에게 소금을 두드리라고 말했습니다. 이 문제를 해결하는 방법에 대한 통찰력을 주시면 감사하겠습니다! 저는 centos 6을 사용하고 있으며 나머지 정보는 아래에 있습니다 :)

내 오류를 해결하려면 도움이 필요합니다.

오류: 패키지: nginx-nr-agent-2.0.0-12.el6.ngx.noarch(nginx) 필요: python-daemon

실제 출력을 확인하세요.

[root@pod12 httpdocs]# python -V
Python 2.6.6
[root@pod12 httpdocs]# python2.7 -V
Python 2.7.14
[root@pod12 httpdocs]# which pip
/usr/local/bin/pip
[root@pod12 httpdocs]# cd /usr/local/bin
[root@pod12 bin]# python2.7 pip install python-daemon
Requirement already satisfied: python-daemon in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: docutils in /usr/local/lib/python2.7/site-packages (from python-daemon)
Requirement already satisfied: lockfile>=0.10 in /usr/local/lib/python2.7/site-packages (from python-daemon)
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/site-packages (from python-daemon)
[root@pod12 bin]# yum install nginx-nr-agent
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.linux.ncsu.edu
 * extras: mirror.cs.pitt.edu
 * updates: mirror.vtti.vt.edu
Resolving Dependencies
--> Running transaction check
---> Package nginx-nr-agent.noarch 0:2.0.0-12.el6.ngx will be installed
--> Processing Dependency: python-daemon for package: nginx-nr-agent-2.0.0-12.el6.ngx.noarch
--> Finished Dependency Resolution
Error: Package: nginx-nr-agent-2.0.0-12.el6.ngx.noarch (nginx)
           Requires: python-daemon
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@pod12 bin]# 

업데이트(Michael에게 감사드립니다) - 이제 다음이 생겼습니다.

[root@pod12 ~]# service nginx-nr-agent start
Traceback (most recent call last):
  File "/usr/bin/nginx-nr-agent.py", line 13, in <module>
    from daemon import runner
  File "/usr/lib/python2.6/site-packages/daemon/runner.py", line 25, in <module>
    import pidlockfile
  File "/usr/lib/python2.6/site-packages/daemon/pidlockfile.py", line 33, in <module>
    class PIDLockFile(LinkFileLock, object):
TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str

답변1

python-daemon은 EPEL 저장소에 있습니다. 이 저장소를 설치하고 활성화한 후 다시 시도하세요.

관련 정보