gpt4 book ai didi

永远运行的 SharePoint 解决方案部署 - SharePoint 2007

转载 作者:行者123 更新时间:2023-12-04 06:37:54 25 4
gpt4 key购买 nike

我正在使用以下脚本安装/卸载解决方案

卸载.bat

@echo off

echo *****************************************************
echo Un-Installing <solution> -
echo (C) <company>. All rights reserved.
echo *****************************************************

set stsadm="%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm.exe"

echo Retracing solution.wsp
%stsadm% -o retractsolution -name solution.wsp -immediate -allContentURLs

%stsadm% -o execadmsvcjobs

echo Wait till the solution retraction is completed (check the central administration)
pause

echo Deleting solution from the solution store
%stsadm% -o deletesolution -name solution.wsp -override

%stsadm% -o execadmsvcjobs

echo - Restarting WSS Timer service
net stop "windows sharepoint services timer"
net start "windows sharepoint services timer"

echo Uninstallation completed successfully

echo.
pause

安装.bat
@echo off
set STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe"

echo *****************************************************
echo Installing <solution> -
echo (C) <company>. All rights reserved.
echo *****************************************************

echo Adding solution.wsp to the solution store
%STSADM% -o addsolution -filename solution.wsp

echo Deploying solution
%STSADM% -o deploysolution -name solution.wsp -force -immediate -allowGacDeployment -allContentURLs

%STSADM% -o execadmsvcjobs

echo Installation completed successfully

IISRESET

Restarting SharePoint Timer Service..

NET STOP SPTIMERV3
NET START SPTIMERV3

REM echo copying resources..
REM %STSADM% -o copyappbincontent

echo.
pause

但是 install.bat 卡在 execadmsvcjobs部署后。当我检查 TaskManager 时,CPU 使用率飙升至 100%,并且 STSADM.EXE 和 OWSTIMER.EXE 正在消耗大量内存。所以部署永远运行。

有任何想法吗?

最佳答案

这是一个很常见的问题,不太可能是您正在部署的实际 WSP 文件的问题。看看 following resources .

关于永远运行的 SharePoint 解决方案部署 - SharePoint 2007,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4644518/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com