我要评分
获取效率
正确性
完整性
易理解

spring-cloud-consul Download Issue

Symptom

If the message "cannot verify certificate" is displayed when you use wget to download software, Consul cannot be downloaded when you run the src/main/bash/travis_install_consul.sh script.

Key Process and Cause Analysis

Certificate verification fails. Use the --no-check-certificate option to ignore certificate verification.

Conclusion and Solution

  1. Open the src/main/bash/travis_install_consul.sh script.
    vim src/main/bash/travis_install_consul.sh
  2. Change the code in line 5 from:
    IGNORE_CERTS="${IGNORE_CERTS:-no}"

    To:

    IGNORE_CERTS="${IGNORE_CERTS:-yes}"

    When the script uses wget to download software, the --no-check-certificate option is automatically added to avoid download problems.

  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Run the src/main/bash/travis_install_consul.sh script again.
    ./src/main/bash/travis_install_consul.sh