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.
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
Starting/Stopping Go Service FAQs
- The Go Service Path Is Incorrect
- Startup Failed
- Environment Variables Are Not Configured
- Deployment Is Successful, But the Service Is Not Started
- Application Deployment Interruption
- Insufficient Permissions
- Parameters Contain Backslashes (\)
- No Host Exists in the Environment.
- Environment Does Not Exist.
- Failed to Deploy an Application on a Windows Host
- Error Occurs During Application Deployment with the sudo Privileges
- Deployment Blocked by Third-Party Antivirus Software
- Invalid Path
- A Network Error Occurs During Software Installation on CentOS
- A Network Error Occurs During Software Installation on Ubuntu OS
- Windows Path Not Allowed on a Linux Host
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more