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.
` 我在 sh 中尝试了 echo ${SERVERROOT}。我在桌面上执行这个脚本。它显示为空。如何动态获取安装路径?
由于可能有多个版本的多个安装,为了可靠地找到它们,您需要解析(对于 8.0 和更高版本)/var/ibm/InstallationManager/installed.xml
或者,将其整理一次并在系统上设置环境变量或符号链接。