java – 无法使用tomcat服务器在linux上安装新的relic

我在新文件上创建了帐户,并为新文件代理下载了zip,并上传到我的
linux机器(tomcat服务器)中的/ etc目录.

根据文档,我遵循以下代码

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

任何人都可以给我这个解决方案吗?

最佳答案 由于日志信息提供无法找到Tomcat,因此需要提供类似于TOMCAT_HOME的env var等.

在linux中,即使你已经安装了一些软件,如果没有添加到PATH或其他一些env var中也不能方便地使用它.

在您的情况下,似乎您需要添加TOMCAT_HOME并将其导出.

确保正确安装了tomcat!

点赞