Environment Variables Are Not Configured
Symptoms
"Unable to start the Go service, please configure Go environment variables!" is displayed, prompting you to configure the environment variable.
Cause Analysis
- Go is not installed.
- Environment variables are not configured or are incorrectly configured.
Solution
- If Go is not installed, install it by following the instructions provided in Installing Go.
- Configure the environment variables correctly.
The current startup and stop operations are performed in no_login mode. If the operating system is Linux and Go is manually installed, add environment variables to the following files:
- Ubuntu: ~/.bashrc and ~/.profile
- Centos: ~/.bashrc and ~/.bash_profile
The following is a configuration example of the environment variables:
- export GOROOT=/usr/local/go/go_install_dir/go
- export GOPATH=/usr/local/go/go_workpath
- export PATH= $GOROOT/bin:$PATH
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot