sharepoint 2010中部署webpart

 

部署 webpart
1、 指定部署位置
cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
2、 添加解决方案
stsadm -o addsolution -filename D:\ RevisionReport.wsp
3、 部署解决方案
stsadm -o deploysolution -name RevisionReport.wsp -url http://btic-i5760d/sites/Test/ -immediate -force -allowgacdeployment
4、 安装功能
stsadm -o installfeature -filename RevisionReport(解决方案名)_ RevisionReport(web部件名)\Feature.xml -force
5、 激活功能
stsadm -o activatefeature -filename RevisionReport_RevisionReport\Feature.xml -url http://btic-i5760d/sites/Test/ -force或者在“网站集功能”中手动激活RevisionReport功能
6、 更新功能
stsadm -o upgradesolution -name RevisionReport.wsp -filename D:\RevisionReport.wsp -local -allowgacdeployment
stsadm -o execadmsvcjobs
7、 停用功能
stsadm -o deactivatefeature -filename RevisionReport_Feature1\feature.xml -url http://btic-i5760d/sites/Test/ -force
8、 卸载功能
stsadm -o uninstallfeature -filename RevisionReport_Feature1\feature.xml -force
9、 删除解决方案
stsadm -o deletesolution -name RevisionReport.wsp -override

你可能感兴趣的:(部署,SharePoint,webpart,feature,休闲,2010)