Window server 2019安装.net3.5并通过jenkins发布c#代码

  

通过闪电下载工具从msdn I tell you下载的windows2019 en版本

光盘下载地址:https://msdn.itellyou.cn/

闪电下载工具:http://bbs.xiaokanba.com/

加载到虚拟光驱d:

下载地址:ed2k://|file|en_windows_server_2019_x64_dvd_4cb967d8.iso|4843268096|91EF33D18517C2711517A84F14463072|/


看到光盘加载成功




光驱.net需要的组件所在的路径

d:\sources\sxs

 

安装media的组件环境

 

windows server2019下相关的bat脚本 C:\Users\Administrator\wwwroot\convert.chinasoft.com\bash
auto.bat

@echo off
cd /d %~dp0

echo 1 >Temp.txt
exit


automonitor.bat

@echo off
cd /d %~dp0

setlocal enabledelayedexpansion

for /f %%a in (Temp.txt) do (
set value=%%a
if "!value!"=="1" (
    call autorun.bat
    echo 0 >Temp.txt
)
)
exit


autorun.bat

@echo off
cd /d %~dp0

::
start taskkill /F /IM OnlineServiceDispatcher.exe
start taskkill /F /IM OnlineConvertService.exe
start taskkill /F /IM GetMediaInfo.exe
start taskkill /F /IM CmdConverter.exe
start taskkill /F /IM ffmpeg.exe
start taskkill /F /IM OnlineServiceMonitor.exe

::
ping 127.1 -n 5 >nul 2>nu

::
xcopy C:\Users\Administrator\wwwroot\convert.chinasoft.com\AppPack_N\* C:\Users\Administrator\wwwroot\convert.chinasoft.com.exe\* /s /e /y /d

::
start C:\Users\Administrator\wwwroot\convert.chinasoft.com.exe\OnlineServiceDispatcher.exe
if "%errorlevel%"=="0" (echo "OnlineServiceDispatcher.exe is start.")

start C:\Users\Administrator\wwwroot\convert.chinasoft.com.exe\OnlineConvertService.exe
if "%errorlevel%"=="0" (echo "OnlineConvertService.exe is start.")

start C:\Users\Administrator\wwwroot\convert.chinasoft.com.exe\OnlineServiceMonitor.exe
if "%errorlevel%"=="0" (echo "OnlineServiceMonitor.exe is start.")

 

 

 
posted @ 2020-09-16 20:08  reblue520  阅读(680)  评论(0编辑  收藏  举报