关闭

Running Go without installation

标签: ubuntuinstallergo
351人阅读 评论(0) 收藏 举报
分类:

1      Running Go without installation

1.1    Run Go server

·        Download the zip installer for Go server

·        Unzip the installer on a folder of your choice. Itcreates a subfolder with the name go-server-<version>

·        Set JAVA_HOME to the installation path of java on thesystem

·        Open a command prompt and go to the folder

·        If you are on a Windows system, run start-server.bat

·        If you are on a unix system, run server.sh . (Ensure that server.sh is executable)

 

1.2    Run Go agent

·        Download the zip installer for Go agent

·        Unzip the installer on a folder of your choice. Itcreates a subfolder with the name go-agent-<version>

·        Set JAVA_HOME to the installation path of java on thesystem

·        Open a command prompt and go to the folder

·        If you are on a Windows system, run start-agent.bat

·        If you are on a unix system, run agent.sh . (Ensure that agent.sh is executable)

·        Go agent, by default, will attempt to connect to the Goserver running on the same system. If you want it to connect to a different Goserver, set the environment variable GO_SERVER or edit the startup scriptssuitably

1.3    后台运行模式

设置环境变量:export DAEMON=Y,再运行程序,则程序进入后台运行模式。

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:7127次
    • 积分:193
    • 等级:
    • 排名:千里之外
    • 原创:7篇
    • 转载:14篇
    • 译文:2篇
    • 评论:0条
    文章分类