【问题标题】:Linux No such file or directoryLinux 没有这样的文件或目录
【发布时间】:2017-11-09 14:14:15
【问题描述】:
我正在尝试在远程 AWS Linux 上设置 JProfiler 代理。
我按照 #### Method 2: Add agentpath to JAVA_OPTS 的步骤进行操作。
但我收到以下错误:
该文件在驱动器上。我可以导航到它。
我做了什么?
- 我下载了 JProfiler10.0.4 作为 Linux 的 targz。
- 解压压缩包
- 执行了命令
nano ~/.bashrc
- 我用这种方式修改了内容。
- 执行了命令
source ~/.bashrc
- 我收到错误消息。
你知道我做错了什么吗?
谢谢
【问题讨论】:
标签:
linux
amazon-web-services
jprofiler
【解决方案1】:
看起来您实际上是在尝试设置JAVA_OPTS。
您已将其分配给JAVA_OPTS 的待办事项,然后将其导出。在您的 .bashrc 中,将 -agentpath:"$jpPath" 替换为:
export JAVA_OPTS="-agentpath:$jpPath"
【解决方案2】:
@crea1 是对的,但我真的不会使用修改JAVA_OPTS 的方法。最好通过修改启动脚本将 -agentpath VM 参数传递给您尝试分析的 VM。