You must be logged in as a user with Admin privileges to install the Go agent on Windows.
go-agent-${version}.exe
installer file and follow the prompts to install Go.localhost
.You may use this method if you would like to script the installation of the go agent.
go-agent-${version}.exe /S /SERVERIP=<SERVERIP> /GO_AGENT_JAVA_HOME=<PATH_TO_JAVA_HOME> /D=<PATH_TO_AGENT_DIRECTORY>
Argument | Required | Description |
---|---|---|
SERVERIP |
No | The hostname of the go server. Defaults to 127.0.0.1 . |
GO_AGENT_JAVA_HOME |
No | The path to a JRE (or JDK) that the agent should run with. Defaults to the jre packaged with the agent. Needs to be atleast Java 7. |
PATH_TO_AGENT_DIRECTORY |
No | The path where the agent should be installed. Defaults to C:\Program Files(x86)\Go Agent . |
For example, C:\> go-agent-12.3.0-2000-setup.exe /S/SERVERIP=10.12.20.47 /D=C:\go\agent
If User Access Control feature is enabled on your Windows system, it needs to be turned off for silent installation to work
If you are using the silent installation to upgrade an agent, you should not specify the Installation-Directory option.
config/wrapper-properties.conf
where you installed the agentconfig/wrapper-agent.conf
into this file. Be sure to increment the property index if you're adding any new properties.wrapper.console.loglevel
-# config/wrapper-properties.conf
wrapper.console.loglevel=DEBUG
# config/wrapper-properties.conf
# since the last "wrapper.java.additional" index is 2, we use the next available index.
wrapper.java.additional.3=-Xmx512mb
All the files for the Go agent are under its root installation folder in Windows, the default location is C:\Program Files\Go Agent
.
For security reasons, all newly installed Go agents need to be enabled on the Go server before work is assigned to them. This prevents an unauthorized person from getting access to your source code. To enable a newly installed Go agent, do the following: