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.
我正在尝试从 aws codedeploy 的钩子脚本中读取 $env:CATALINA_HOME。但我得到的是空白值而不是实际值。当脚本在机器上独立运行时,它会返回实际值。
有没有办法从钩子脚本中读取系统环境变量..?
CodeDeploy 代理服务以本地系统用户身份运行。因此,请确保您的环境变量设置在系统级别。这样,所有用户都可以看到它。-苏里亚