部署 CodeArts Deploy-环境变量未配置:处理方法
时间:2025-02-12 15:02:16
处理方法
- 若未安装Go,可通过“安装Go语言 ”部署步骤进行安装。
- 正确配置相关环境变量。
由于当前启动/停止操作为“no_login”方式,若系统为Linux系统,Go语言为手动安装,还需在以下文件中增加环境变量:
- Ubuntu: ~/.bashrc 和 ~/.profile
- Centos: ~/.bashrc 和 ~/.bash_profile
所需环境变量配置示例如下:
- export GOROOT=/usr/local/go/go_install_dir/go
- export GOPATH=/usr/local/go/go_workpath
- export PATH= $GOROOT/bin:$PATH
support.huaweicloud.com/deployman_faq/deployman_faq_0204.html