diff --git a/documents/help/oss/use-function-compute-to-download-multiple-objects-as-a-package.yml b/documents/help/oss/download-package-by-fc.yml similarity index 100% rename from documents/help/oss/use-function-compute-to-download-multiple-objects-as-a-package.yml rename to documents/help/oss/download-package-by-fc.yml diff --git a/documents/solution/internet-application-development/rapidly-enterprise-portal.yml b/documents/solution/internet-application-development/rapidly-enterprise-portal.yml index c070a5f2..545c0877 100644 --- a/documents/solution/internet-application-development/rapidly-enterprise-portal.yml +++ b/documents/solution/internet-application-development/rapidly-enterprise-portal.yml @@ -26,10 +26,10 @@ Parameters: en: Instance Type zh-cn: 实例规格 Description: - zh-cn: 本方案会创建一个抢占式实例,并且自动部署node.js服务。 + zh-cn: 本方案会创建一个抢占式实例,并且自动部署java服务。 en: >- This solution will create a spot instance and automatically deploy a - node.js service. + java service. Default: ecs.c7.large InstancePassword: NoEcho: true @@ -139,7 +139,7 @@ Resources: SpotStrategy: SpotAsPriceGo Password: Ref: InstancePassword - InstallNodeJs: + InstallJava: Type: 'ALIYUN::ECS::RunCommand' Properties: InstanceIds: @@ -157,7 +157,7 @@ Resources: # 0 - success # 1 - unsupported system # 2 - network not available - # 3 - failed install nodejs + # 3 - failed install java # 环境变量配置 export PATH=/usr/local/bin:$PATH @@ -201,15 +201,9 @@ Resources: fi } - function install_nodejs() { - log_info "install nodejs" - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile - echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bash_profile - echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> ~/.bash_profile - source ~/.bash_profile - nvm install 20 - node -v && npm -v + function install_java() { + log_info "install java" + yum upgrade & yum install java-1.8.0-openjdk-devel -y } log_info "System Information:" @@ -219,10 +213,9 @@ Resources: echo "" check_network_available - if ! debug_exec install_nodejs; then - log_fatal 3 "install nodejs failed" + if ! debug_exec install_java; then + log_fatal 3 "install java failed" fi - DomainRecord: Type: 'ALIYUN::DNS::DomainRecord' Condition: DnsRecord