【发布时间】:2014-01-18 02:55:44
【问题描述】:
我已经在 new relic 上创建了帐户并下载了 new relic 代理的 zip 并上传到我的 linux 机器中的 /etc 目录(tomcat 服务器)。
根据文档,我遵循以下代码
cd /etc/newrelic
java -jar newrelic.jar install
但我收到以下错误:
Dec 31, 2013 06:14:04 +0000 NewRelic 1 INFO: Agent is using Logback
***** ( ( o)) New Relic Java Agent Installer
***** Installing version 3.2.3 ...
Could not edit start script because:
.:. Could not locate a Tomcat, Jetty, JBoss, JBoss7 or Glassfish instance in /etc
Try re-running the install command with the -s <AppServerRootDirectory> option or from <AppServerRootDirectory>/newrelic.
If that doesn't work, locate and edit the start script manually.
No need to create New Relic configuration file because:
.:. A config file already exists: /etc/newrelic/newrelic.yml
***** Install incomplete
***** Next steps:
For help completing the install, see https://newrelic.com/docs/java/new-relic-for-java
谁能给我解决方案?
【问题讨论】:
-
当然。首先,
export TOMCAT_HOME=""到你有 tomcat 的地方,然后是java -jar newrelic.jar install -s $TOMCAT_HOME。 -
我现在已经这样做了,并收到以下错误:解析参数时出错 com.newrelic.deps.org.apache.commons.cli.MissingArgumentException:缺少选项参数:s 请提供任何解决方案?
标签: java linux tomcat newrelic