New Relic需要在Openshift机器上具有root用户访问权限 [英] New Relic requires root access on Openshift machine

查看:135
本文介绍了New Relic需要在Openshift机器上具有root用户访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我在Openshift上有一个应用程序,我刚刚添加了New Relic附加组件
  • New Relic要求设置服务器,并且配置列为
  • I have an Application on Openshift and I just added New Relic add-on
  • New Relic asks for setting up Server and configuration is listed as

但是,我无法获得root用户访问权限

However, I could not get root access , I tried

\> sudo rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
bash: /usr/bin/sudo: Permission denied

> su - root
bash: /bin/su: Permission denied

> sudo su
bash: /usr/bin/sudo: Permission denied

如何在Openshift框上设置新遗物?

How do I setup New Relic on my Openshift box?

谢谢

推荐答案

您无法在OpenShift Online上进行root访问,因此无法在全局范围内安装New Relic软件包. OpenShift上的应用程序代码在沙盒环境中运行-<齿轮>齿轮. (有关OpenShift体系结构的更多信息,请此处.)

You're not allowed root access on OpenShift Online so you can't install the New Relic package globally. Application code on OpenShift operates in a sandbox environment—a gear. (More on the OpenShift architecture here.)

因此要在OpenShift上使用New Relic,您必须通过创建OpenShift墨盒使它在齿轮内工作. (也就是说,除非找到其他人已经制造的现有新Relic墨盒.)此博客文章很好地解释了在盒式磁带中运行软件的限制,并列举了使Apache在盒式磁带中运行的示例.

So to use New Relic on OpenShift you must make it work inside within a gear by creating an OpenShift cartridge. (That is, unless you can find an existing New Relic cartridge already made by someone else.) This blog post does a great job explaining the restrictions of software operating in a cartridge and goes through an example of making Apache work within a cartridge.

这篇关于New Relic需要在Openshift机器上具有root用户访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆