Skip to content

Instantly share code, notes, and snippets.

@arkuznetsov
Last active December 1, 2024 16:59
Show Gist options
  • Save arkuznetsov/4791b4495ca2417abc0d972c03e3d265 to your computer and use it in GitHub Desktop.
Save arkuznetsov/4791b4495ca2417abc0d972c03e3d265 to your computer and use it in GitHub Desktop.

Revisions

  1. arkuznetsov revised this gist Oct 9, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@ set version=%1
    set regport=%241
    set port=%240
    set range=%260:%291
    set work_dir="C:\Program Files\1cv8\srvinfo%regport%"
    set work_dir=C:\Program Files\1cv8\srvinfo%regport%
    set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d %work_dir%"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set description="1C:Enterprise 8.3 Server Agent (%regport%)"

    sc stop %srvc_name%
  2. arkuznetsov revised this gist Oct 9, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,9 @@ set version=%1
    set regport=%241
    set port=%240
    set range=%260:%291
    set work_dir="C:\Program Files\1cv8\srvinfo"
    set work_dir="C:\Program Files\1cv8\srvinfo%regport%"
    set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d %work_dir%"
    set description="1C:Enterprise 8.3 Server Agent (%regport%)"

    sc stop %srvc_name%
  3. arkuznetsov revised this gist Oct 9, 2020. 4 changed files with 7 additions and 7 deletions.
    6 changes: 3 additions & 3 deletions reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    @echo off
    set version=%1
    set regport=1541
    set port=1540
    set range=1560:1591
    set regport=%241
    set port=%240
    set range=%260:%291
    set work_dir="C:\Program Files\1cv8\srvinfo"
    set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    4 changes: 2 additions & 2 deletions reg_RAS.cmd
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    @echo off
    set version=%1
    set port=1545
    set port=%245
    set agent_address=127.0.0.1
    set agent_port=1540
    set agent_port=%240
    set srvc_name="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ras.exe cluster --service --port=%port% %agent_address%:%agent_port%"
    set description="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"
    2 changes: 1 addition & 1 deletion reg_crserver.cmd
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    @echo off
    set version=%1
    set port=1542
    set port=%242
    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Configuration Repository Server (%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port %port% -d \"%storage_path%\""
    2 changes: 1 addition & 1 deletion reg_debugserver.cmd
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    @echo off
    set version=%1
    set address=127.0.0.1
    set port=1550
    set port=%250
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe --service --addr=%address% --port=%port%"
    set description="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
  4. arkuznetsov revised this gist Nov 15, 2019. 3 changed files with 3 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ set port=1540
    set range=1560:1591
    set work_dir="C:\Program Files\1cv8\srvinfo"
    set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe\" -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set description="1C:Enterprise 8.3 Server Agent (%regport%)"

    sc stop %srvc_name%
    2 changes: 1 addition & 1 deletion reg_RAS.cmd
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ set port=1545
    set agent_address=127.0.0.1
    set agent_port=1540
    set srvc_name="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ras.exe\" cluster --service --port=%port% %agent_address%:%agent_port%"
    set binpath="C:\Program Files\1cv8\%version%\bin\ras.exe cluster --service --port=%port% %agent_address%:%agent_port%"
    set description="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"

    sc stop %srvc_name%
    2 changes: 1 addition & 1 deletion reg_debugserver.cmd
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ set version=%1
    set address=127.0.0.1
    set port=1550
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe\" --service --addr=%address% --port=%port%"
    set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe --service --addr=%address% --port=%port%"
    set description="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"

    sc stop %srvc_name%
  5. arkuznetsov revised this gist Nov 15, 2019. 4 changed files with 8 additions and 8 deletions.
    4 changes: 2 additions & 2 deletions reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@ set range=1560:1591
    set work_dir="C:\Program Files\1cv8\srvinfo"
    set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe\" -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set desctiption="1C:Enterprise 8.3 Server Agent (%regport%)"
    set description="1C:Enterprise 8.3 Server Agent (%regport%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    sc create %srvc_name% binPath= %binpath% start= auto displayname= %description%
    4 changes: 2 additions & 2 deletions reg_RAS.cmd
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@ set agent_address=127.0.0.1
    set agent_port=1540
    set srvc_name="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ras.exe\" cluster --service --port=%port% %agent_address%:%agent_port%"
    set desctiption="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"
    set description="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    sc create %srvc_name% binPath= %binpath% start= auto displayname= %description%
    4 changes: 2 additions & 2 deletions reg_crserver.cmd
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@ set port=1542
    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Configuration Repository Server (%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port %port% -d \"%storage_path%\""
    set desctiption="1C:Enterprise 8.3 Configuration Repository Server (%port%)"
    set description="1C:Enterprise 8.3 Configuration Repository Server (%port%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    sc create %srvc_name% binPath= %binpath% start= auto displayname= %description%
    4 changes: 2 additions & 2 deletions reg_debugserver.cmd
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@ set address=127.0.0.1
    set port=1550
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe\" --service --addr=%address% --port=%port%"
    set desctiption="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    set description="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    sc create %srvc_name% binPath= %binpath% start= auto displayname= %description%
  6. arkuznetsov revised this gist Nov 15, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,9 @@ set regport=1541
    set port=1540
    set range=1560:1591
    set work_dir="C:\Program Files\1cv8\srvinfo"
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%regport%)"
    set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe\" -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set desctiption="1C:Enterprise 8.3 Remote Debug Server (%regport%)"
    set desctiption="1C:Enterprise 8.3 Server Agent (%regport%)"

    sc stop %srvc_name%
    sc delete %srvc_name%
  7. arkuznetsov revised this gist Nov 15, 2019. 2 changed files with 15 additions and 1 deletion.
    14 changes: 14 additions & 0 deletions reg_1cserver.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    @echo off
    set version=%1
    set regport=1541
    set port=1540
    set range=1560:1591
    set work_dir="C:\Program Files\1cv8\srvinfo"
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%regport%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe\" -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\""
    set desctiption="1C:Enterprise 8.3 Remote Debug Server (%regport%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    2 changes: 1 addition & 1 deletion reg_crserver.cmd
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ set version=%1
    set port=1542
    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Configuration Repository Server (%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port %port% -d \"%cluster_path%\""
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port %port% -d \"%storage_path%\""
    set desctiption="1C:Enterprise 8.3 Configuration Repository Server (%port%)"

    sc stop %srvc_name%
  8. arkuznetsov revised this gist Nov 15, 2019. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions reg_RAS.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    @echo off
    set version=%1
    set port=1545
    set agent_address=127.0.0.1
    set agent_port=1540
    set srvc_name="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\ras.exe\" cluster --service --port=%port% %agent_address%:%agent_port%"
    set desctiption="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
  9. arkuznetsov revised this gist Nov 15, 2019. 2 changed files with 11 additions and 6 deletions.
    13 changes: 9 additions & 4 deletions reg_crserver.cmd
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,12 @@
    @echo off
    set version=%1
    set port=1542
    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Configuration Repository Server"
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port 1542 -d \"%cluster_path%\""
    set desctiption="1C:Enterprise 8.3 Configuration Repository Server"
    set srvc_name="1C:Enterprise 8.3 Configuration Repository Server (%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port %port% -d \"%cluster_path%\""
    set desctiption="1C:Enterprise 8.3 Configuration Repository Server (%port%)"

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
    4 changes: 2 additions & 2 deletions reg_debugserver.cmd
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,11 @@
    set version=%1
    set address=127.0.0.1
    set port=1550

    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe\" --service --addr=%address% --port=%port%"
    set desctiption="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"

    sc stop %srvc_name%
    sc delete %srvc_name%

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
  10. arkuznetsov revised this gist Nov 15, 2019. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions reg_debugserver.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    @echo off
    set version=%1
    set address=127.0.0.1
    set port=1550

    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe\" --service --addr=%address% --port=%port%"
    set desctiption="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)"
    sc stop %srvc_name%
    sc delete %srvc_name%
    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%
  11. arkuznetsov created this gist Nov 15, 2019.
    7 changes: 7 additions & 0 deletions reg_crserver.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    set version=%1
    set storage_path=d:\1CRepo
    set srvc_name="1C:Enterprise 8.3 Configuration Repository Server"
    set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port 1542 -d \"%cluster_path%\""
    set desctiption="1C:Enterprise 8.3 Configuration Repository Server"

    sc create %srvc_name% binPath= %binpath% start= auto displayname= %desctiption%