SharePoint發行版本有SharePoint2003、SharePoint2007、Sharepoint 2010、SharePoint2013和SharePoint2016。SharePoint提供了功能強大的團隊協作環境,使得組織能夠在整個組織內部實現整合、組織、查找和提供 SharePoint站點。 一.安裝部署Feature ? ?在使用Stsadm命令前,可以參考此文章Sharepoint學習筆記-- 如何在系統Path中添加STSADM的快速引用(Add STSADM in path) ? 以下是操作步驟: ??? 1.把Wsp文件拷貝到你要部署的服務器指定目錄下eg: D:\ Sp2010\Wsp\Myfeature.wsp ??? 2.以Administrator方式進入命令提示窗口 command line (Run -> cmd ) ? ??3.添加 solution: ??? ?stsadm -o addsolution -filename {PATH\WSPFILENAME} ??? 4.部署solution: ??? stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL} –allowgacdeployment -immediate ???? ?如果Feature的作用域不是”Web”,那么,可以不要上面的‘ -url {SITEURL} ‘ 參數 ??? 5. 轉到你剛才所部署的Feature所在的網站集上(eg: http://myserver-Sp1:2010) ???? Site Actions menuà site settingsàSite Collection AdministrationàSite collection features ,找到你剛才部署的feature,點擊Activate 激活它。然后你就可以在此網站集或其下的子網站集中使用它了。 二. 移除Feature ?需要下面兩個步驟: ? 1.stsadm -o retractsolution -name {WSPFILENAME} ??2.stsadm -o deletesolution -name {WSPFILENAME} ? 也可通過Sharepoint的用戶操作界面來實現,方法是: ? Central administration-->System Settings-->Farm Management-->Manage Farm Solutions-->選中你要操作的 solution-->在界面頂部點擊 ‘Retract solution’-->等候片刻,等此操作完成后-->在此界面頂部點擊 ‘Remove solution’。這樣就移除了你想要移除的Feature。 要證實你是否真正地移除了你的Feature,你可以進入你所操作的網站集: Site Actions-->GalleriesàSolutions下查看此Feature是否存在。 ?或者SiteActions-->Site Collection Administration-->Site Collection Features下查看此Feature是否而在. ? 三、涉及的常用STSADM COMMANDS 1. Add the solution 2. Deploy the solution 3. Install the feature 4. Activate the feature 5. Deactive the feature 6.Uninstall the feature 7.Retract Solution 8.Delete Solution 當你在Sharepoint Farm的一個臺服務器上部署了指定的Feature后,SPTimer服務會自動 synchronise/deploy (同步/部署)這個solution 到此Farm中其它服務器上。 Sharepoint 可以幫助企業用戶輕松完成日常工作。 |
溫馨提示:喜歡本站的話,請收藏一下本站!