代码拉取完成,页面将自动刷新
同步操作将从 NeatLogic/neatlogic-tagent-client 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
echo off
set SRV_ADDR=%1
set TENANT=%2
set LISTEN_ADDR=%3
set PORT=%4
IF NOT "%TENANT%" == "" (
"%CD%\Perl\bin\perl" -i.bak -pe "s/tenant=.*/tenant=%TENANT%/g" "%CD%\conf\tagent.conf"
)
IF NOT "%LISTEN_ADDR%" == "" (
"%CD%\Perl\bin\perl" -i.bak -pe "s/listen.addr=.*/listen.addr=%LISTEN_ADDR%/g" "%CD%\conf\tagent.conf"
)
IF NOT "%PORT%" == "" (
"%CD%\Perl\bin\perl" -i.bak -pe "s/listen.port=.*/listen.port=%PORT%/g" "%CD%\conf\tagent.conf"
)
IF NOT "%SRV_ADDR%" == "" (
set REG_URL=%SRV_ADDR%/autoexecrunner/public/api/rest/tagent/register?tenant=%TENANT%
"%CD%\Perl\bin\perl" -i.bak -pe "s/proxy\.registeraddress=.*/proxy.registeraddress=$ENV{REG_URL}/g" "%CD%\conf\tagent.conf"
)
echo on
@REM 请使用管理员运行cmd,运行此脚本进行服务安装
tssm install Tagent-Server "%CD%\Perl\bin\perl.exe" tagent start
tssm set Tagent-Server DisplayName "Tagent-Server for automation"
tssm set Tagent-Server AppDirectory "%CD%\bin"
tssm set Tagent-Server AppEnvironmentExtra Path="%CD%"\Perl\bin;%%path%% PERLLIB="%CD%"\Perl\lib;"%CD%"\Perl\vender\lib;"%CD%"\Perl\site\lib PERL5LIB="%CD%"\Perl\lib;"%CD%"\Perl\vender\lib;"%CD%"\Perl\site\lib
tssm set Tagent-Server ObjectName LocalSystem
tssm set Tagent-Server Type SERVICE_WIN32_OWN_PROCESS
tssm set Tagent-Server AppThrottle 3000
tssm set Tagent-Server AppExit Default Restart
tssm set Tagent-Server AppRestartDelay 3000
@REM tssm set Tagent-Server AppStdout "%CD%\logs\service-out.log"
@REM tssm set Tagent-Server AppStderr "%CD%\logs\service-err.log"
@REM tssm set Tagent-Server AppStdoutCreationDisposition 4
@REM tssm set Tagent-Server AppStderrCreationDisposition 4
@REM tssm set Tagent-Server AppRotateFiles 1
@REM tssm set Tagent-Server AppRotateOnline 1
@REM tssm set Tagent-Server AppRotateSeconds 86400
@REM tssm set Tagent-Server AppRotateBytes 4194304
net start Tagent-Server
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。