注:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\bin

         stsadm –o addtemplate –title 凤凰小学模版 –filename d:\fenghuangxiaoxue.stp

 
 

 
 

MOSS部署常用的stsadm命令行

 
 

常用的stsadm命令行参数有:

、installfeature、uninstallfeature:feature部署和卸载;

     安装feature:stsadm -o installfeature -filename [feature文件夹下]\feature.xml

     激活feature:stsadm -o activatefeature -filename [feature路径]\feature.xml -url http://[主机标头]:[端口]/sites/portol  -force

          特别注意的地方 -url

    还有就是:"主机标头"可以不是计算机名,但是有时创建Web Application时会出错,所以还是用计算机名比较好。也不知到为什么会出错。

、addwppack、deletewppack:webpart和*.cab部署和卸载;

     安装:stsadm -o addwppack -filename [*.cab文件路径]\*.cab

     卸载:stsadm -o deletewppack -name *.cab

     一般情况下,webpart不要直接部署到网站里,用feature部署要好一些。

、addtemplate、deleteremplate:template(模板)的部署和卸载;

     安装:stsadm.exe -o addtemplate -filename  [*.stp文件路径]\*.stp -title [template名称]

、addsolution、deletesolution:solution部署和卸载;

     安装:stsadm -o addsolution -filename [*.wsp文件路径]\*.wsp;

     部署:stsadm -o deploysolution -name *.wsp -allowgacdeployment -immediate

     删除:stsadm.exe -o deletesolution -name *.wsp

 Feature功能很强大,很多东西都可以通过feature部署到MOSS里,但是根据自己的使用情况,个人感觉母板页(MasterPage)和模板(template)还是通过"母板页库"和"模板库"上传上去比较好用。

、Solution的部署与删除:

   部署:

   A.把.stp 和.wsp文件直接放在c:\目录下

打开"命令提示符"窗口,输入:

 
 

cd  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

 
 

   B.安装solution

stsadm -o addsolution -filename c:\MeetingTemplate.wsp

 
 

   C.部署deploysolution

stsadm -o deploysolution -name MeetingTemplate.wsp -allowgacdeployment -immediate

 
 

   如果部署的是aspx页面,DLL会自动部到GAC里,aspx页面也会自动部到Layouts下。

   删除

   A.retractsolution

stsadm.exe -o retractsolution  -name MeetingTemplate.wsp -immediate

 
 

   B.deletesolution

stsadm.exe -o deletesolution -name MeetingTemplate.wsp

也可以强制删除  [-override]

6.激活feature

stsadm -o activatefeature -filename MeetingTemplate\feature.xml -url http://test:9001/sites/portail  -force

特别注意的地方 -url

、getlock、setlock:用于在备份backup site collection时访问限制;

Limit access to the site collection during backup(转载)

 
 

At a command prompt on the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

To determine the current access level of the site, type the following command, and then press ENTER:

stsadm -o getsitelock -url <URL name>

where URL name is the URL of the site collection that you want to back up. For more information, see Getsitelock: Stsadm operation (Office SharePoint Server).

If the current access level allows changes to the site content, change it to read-only by typing the following command, and then pressing ENTER:

stsadm -o setsitelock -url <URL name> -lock readonly

where URL name is the URL of the site collection that you want to back up. For more information, see Setsitelock: Stsadm operation (Office SharePoint Server).

When the backup is complete, use this procedure to return access to the site collection to the original setting determined in step 1.

Use this procedure to back up a site collection by using the Stsadm command-line tool.

Important: 

Membership in the Administrators group on the local computer is the minimum required to complete this procedure.
 

转自:http://www.cnblogs.com/lmjob/archive/2010/03/01/1675564.html

[转]MOSS通过此命令注册模板,web应用程序可以根据stp模块生成网站集的更多相关文章

  1. 转载 Flask中客户端 - 服务器 - web应用程序 是如何处理request生成response的?

    文章转载自https://blog.csdn.net/weixin_37923128/article/details/80992645 , 感谢原作者 当客户端向服务器发送一个请求时,服务器会将请求转 ...

  2. [SharePoint 2013 入门教程 2 ] 创建WEB应用程序,网站集,网站

    SharePoint 2013 的 Hello World 由大到小  创建WEB应用程序(老母),网站集(儿子),网站(孙子) 直接确定,其余都默认 填入标题,选好模板.网站集 儿子就有了. 点击页 ...

  3. 菜鸟疑问之新建网站与新建web应用程序区别

    学习asp.net一定少不了这困惑:新建网站与新建web应用程序有什么区别? 新建web应用程序 新建网站 呵呵,其实从名字看一个是webApplication,一个是webSite.名字不同罢了? ...

  4. 网站和Web应用程序的区别

    新建项目里面的(ASP.NET Web 应用程序)主要是做B/S系统的,与winform的开发方式类似.新建网站(ASP.NET 网站)是主要开发网站的.其实你只要跟着教程做就行了.具体区别如下(借鉴 ...

  5. WEB服务器4--IIS中网站、Web应用程序和虚拟目录

    网站.Web应用程序和虚拟目录 在IIS中可以创建网站.Web 应用程序和虚拟目录,以便与计算机网络上的用户共享信息. “网站”.“Web 应用程序”和“虚拟目录”这三个概念的关系如图 8‑1所示. ...

  6. 新建网站与新建Asp.Net Web 应用程序的区别

    .net网站和应用程序区别,网站是动态执行的不用编译,他只依赖于自己的文档本身,甚至你用aspx里直接写jsp代码都可以,其实网站可以说只是在.net平台中打开的文档,相当于最初的记事本编码,他并不需 ...

  7. Web应用程序信息收集工具wig

    Web应用程序信息收集工具wig   很多网站都使用成熟的Web应用程序构建,如CMS.分析网站所使用的Web应用程序,可以快速发现网站可能存在的漏洞.Kali Linux新增加了一款Web应用程序信 ...

  8. Web 应用程序项目与 Visual Studio 中的网站项目的异同

    要查看英语原文,请勾选“英语”复选框.也可将鼠标指针移到文本上,在弹出窗口中显示英语原文. 翻译 英语 本文档已存档,并且将不进行维护. Web 应用程序项目与 Visual Studio 中的网站项 ...

  9. Win10 兼容性 Visual studio web应用程序 ASP.NET 4.0 尚未在 Web 服务器上注册

    系统升级到windows10 ,Visual studio 创建web应用程序时出现如下提示ASP.NET 4.0尚未在 Web 服务器上注册.为了使网站正确运行,可能需要手动将 Web 服务器配置为 ...

随机推荐

  1. Hadoop阅读笔记(七)——代理模式

    关于Hadoop已经小记了六篇,<Hadoop实战>也已经翻完7章.仔细想想,这么好的一个框架,不能只是流于应用层面,跑跑数据排序.单表链接等,想得其精髓,还需深入内部. 按照<Ha ...

  2. 使用Html5+C#+微信 开发移动端游戏详细教程 :(三)使用html5引擎搭建游戏框架

    教程里的案例我们是通过H5游戏引擎开发,目前H5的游戏引擎比较好用的是白鹭,不过对于新手来说白鹭的开发环境和工具使用过于复杂,这里推荐一个国内大神编写的游戏引擎:lufylegend. 直接在页面引入 ...

  3. 生成二维码的方法,基于zxing

    现在生活中常用了一些二维码,这些在现实生活中已经非常密切了,那么怎么使用java来产生一个二维码呢? 下面给出代码 首先给出一个工具类,这里包含了生成二维码的图片对象,保存到流中,或者文件中: pac ...

  4. Android Activity返回键控制的两种方式

    Android Activity返回键监听的两种方式 1.覆写Activity的OnBackPressed方法 官方解释: Called when the activity has detected ...

  5. String.split()用法以及特殊分隔符注意,ps:|

    转载:http://www.cnblogs.com/mingforyou/archive/2013/09/03/3299569.html 在java.lang包中有String.split()方法,返 ...

  6. Elasticsearch 之 数据索引

    对于提供全文检索的工具来说,索引时一个关键的过程——只有通过索引操作,才能对数据进行分析存储.创建倒排索引,从而让使用者查询到相关的信息. 本篇就ES的数据索引操作相关的内容展开: 更多内容参考:El ...

  7. 创建html元素

    如果我要创建一个div元素. 1.使用DOM对象创建: 使用document.createElement('div')方法创建元素. 2.使用JQuery创建: 使用$('<div>通过J ...

  8. [Asp.net 5] DependencyInjection项目代码分析2-Autofac

    Microsoft.Framework.DependencyInjection.Autofac源码分析 该工程只有一个代码静态类AutofacRegistration,但是该类有3个扩展方法,以及3个 ...

  9. [DBW]大图轮播,可通过两种方法实现

    通过在div中加入表格,实现大图轮播,代码如下: 整体的思路: 1.在div中嵌入表格,设置div的宽和高,设置成图片大小,确定其位置,将图片插入表格,超出div部分隐藏 2.在js中定义一个变量接受 ...

  10. Bootstrap学习笔记系列6-----Bootstrap文本显示

    通过对文本或者链接添加下面的类,会使其展示不同的颜色,如果文本是个链接,鼠标移动到文本上,颜色会变暗. text-muted柔和的文本(深色) text-primary 表示基础的文本(蓝色) tex ...