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

注: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模块生成网站集的更多相关文章
- 转载 Flask中客户端 - 服务器 - web应用程序 是如何处理request生成response的?
文章转载自https://blog.csdn.net/weixin_37923128/article/details/80992645 , 感谢原作者 当客户端向服务器发送一个请求时,服务器会将请求转 ...
- [SharePoint 2013 入门教程 2 ] 创建WEB应用程序,网站集,网站
SharePoint 2013 的 Hello World 由大到小 创建WEB应用程序(老母),网站集(儿子),网站(孙子) 直接确定,其余都默认 填入标题,选好模板.网站集 儿子就有了. 点击页 ...
- 菜鸟疑问之新建网站与新建web应用程序区别
学习asp.net一定少不了这困惑:新建网站与新建web应用程序有什么区别? 新建web应用程序 新建网站 呵呵,其实从名字看一个是webApplication,一个是webSite.名字不同罢了? ...
- 网站和Web应用程序的区别
新建项目里面的(ASP.NET Web 应用程序)主要是做B/S系统的,与winform的开发方式类似.新建网站(ASP.NET 网站)是主要开发网站的.其实你只要跟着教程做就行了.具体区别如下(借鉴 ...
- WEB服务器4--IIS中网站、Web应用程序和虚拟目录
网站.Web应用程序和虚拟目录 在IIS中可以创建网站.Web 应用程序和虚拟目录,以便与计算机网络上的用户共享信息. “网站”.“Web 应用程序”和“虚拟目录”这三个概念的关系如图 8‑1所示. ...
- 新建网站与新建Asp.Net Web 应用程序的区别
.net网站和应用程序区别,网站是动态执行的不用编译,他只依赖于自己的文档本身,甚至你用aspx里直接写jsp代码都可以,其实网站可以说只是在.net平台中打开的文档,相当于最初的记事本编码,他并不需 ...
- Web应用程序信息收集工具wig
Web应用程序信息收集工具wig 很多网站都使用成熟的Web应用程序构建,如CMS.分析网站所使用的Web应用程序,可以快速发现网站可能存在的漏洞.Kali Linux新增加了一款Web应用程序信 ...
- Web 应用程序项目与 Visual Studio 中的网站项目的异同
要查看英语原文,请勾选“英语”复选框.也可将鼠标指针移到文本上,在弹出窗口中显示英语原文. 翻译 英语 本文档已存档,并且将不进行维护. Web 应用程序项目与 Visual Studio 中的网站项 ...
- Win10 兼容性 Visual studio web应用程序 ASP.NET 4.0 尚未在 Web 服务器上注册
系统升级到windows10 ,Visual studio 创建web应用程序时出现如下提示ASP.NET 4.0尚未在 Web 服务器上注册.为了使网站正确运行,可能需要手动将 Web 服务器配置为 ...
随机推荐
- 27 个免费的 HTML5/CSS3 模板供下载
EscapEvelocity Responsive Html5 Theme ( Demo || Download) Base 2013 Responsive Html5 Theme (Demo || ...
- 修改cdh5集群中主机节点IP或hostName
前言 在使用cdh集群过程中,难免会因为某些不可抗拒的原因导致节点IP或hostName变动,而cm的监控界面无法完成这些事情,但是cm将集群中所有的主机的信息都存在postgresql数据库的hos ...
- linux useradd 命令基本用法
在 Linux 中 useradd 是个很基本的命令,但是使用起来却很不直观.以至于在 Ubuntu 中居然添加了一个 adduser 命令来简化添加用户的操作.本文主要描述笔者在学习使用 usera ...
- Emit学习(4) - Dapper解析之数据对象映射(二)
承接着上一篇, 这一篇主要以堆栈的方式来演示一下, db数据转换到类中去的一个过程. 一.先看第一张图 程序在运行到176行(上一篇贴出的代码)的时候, 就会出现上图中的第一个栈. 那在此之前, Da ...
- jQuery Ajax实现下拉框无刷新联动
HTML代码: @{ Layout = null; } @using DAL; @using System.Data; @{ AreaDal areaDal = new AreaDal(); stri ...
- 正则表达式匹配a标签的href
JS代码: <html> <head> <script language="javascript"> var a='<P><A ...
- LINQ使用Lambda表达式选择几列
学习LINQ的Lambda的表达式,尝试从数据集合中,选择其中几列. 创建一个model: source code: namespace Insus.NET.Models { public class ...
- ASP.NET Core开发-MVC 使用dotnet 命令创建Controller和View
使用dotnet 命令在ASP.NET Core MVC 中创建Controller和View,之前讲解过使用yo 来创建Controller和View. 下面来了解dotnet 命令来创建Contr ...
- mongdo通用类(C#版)
日前从公司离职,很快,还没休息就步入了现在的公司,开始跟着公司的脚步走. 公司的项目基本都是大数据的,所以在数据库上大部分都是使用Mongodb和Redis,基本都是Nosql型的数据库为主.以前自己 ...
- Response.Redirect 无法跳转页面
错误现象:Response.Redirect(Server.MapPath("BackIndex.aspx")); 打断点测试执行了这一句,Server.MapPath(" ...