Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 Java 应用程序部署到服务器并需要运行 Jconsole 进行分析。我通过 SSH 连接到服务器并运行 jconsole,但出现错误
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
如何在我的客户端机器上通过 SSH 运行 JConsole?
当连接到服务器时,启用 X 转发ssh -X $servername
ssh -X $servername