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

本文介绍MOSS环境中stsadm命令的常见用法,包括feature、webpart、template等的部署与管理,以及如何利用stsadm进行solution的部署、激活与删除。还涉及在备份期间如何设置和获取站点锁来限制对站点集合的访问。

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

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

 

 

MOSS部署常用的stsadm命令行

 

常用的stsadm命令行参数有:

1、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时会出错,所以还是用计算机名比较好。也不知到为什么会出错。

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

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

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

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

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

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

4、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)还是通过“母板页库”和“模板库”上传上去比较好用。

5、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

7、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.
 

 

转载于:https://www.cnblogs.com/lmjob/archive/2010/03/01/1675564.html

(1)普通用户端(全平台) 音乐播放核心体验: 个性化首页:基于 “听歌历史 + 收藏偏好” 展示 “推荐歌单(每日 30 首)、新歌速递、相似曲风推荐”,支持按 “场景(通勤 / 学习 / 运动)” 切换推荐维度。 播放页功能:支持 “无损音质切换、倍速播放(0.5x-2.0x)、定时关闭、歌词逐句滚动”,提供 “沉浸式全屏模式”(隐藏冗余控件,突出歌词与专辑封面)。 多端同步:自动同步 “播放进度、收藏列表、歌单” 至所有登录设备(如手机暂停后,电脑端打开可继续播放)。 音乐发现与管理: 智能搜索:支持 “歌曲名 / 歌手 / 歌词片段” 搜索,提供 “模糊匹配(如输入‘晴天’联想‘周杰伦 - 晴天’)、热门搜索词推荐”,结果按 “热度 / 匹配度” 排序。 歌单管理:创建 “公开 / 私有 / 加密” 歌单,支持 “批量添加歌曲、拖拽排序、一键分享到社交平台”,系统自动生成 “歌单封面(基于歌曲风格配色)”。 音乐分类浏览:按 “曲风(流行 / 摇滚 / 古典)、语言(国语 / 英语 / 日语)、年代(80 后经典 / 2023 新歌)” 分层浏览,每个分类页展示 “TOP50 榜单”。 社交互动功能: 动态广场:查看 “关注的用户 / 音乐人发布的动态(如‘分享新歌感受’)、好友正在听的歌曲”,支持 “点赞 / 评论 / 转发”,可直接点击动态中的歌曲播放。 听歌排行:个人页展示 “本周听歌 TOP10、累计听歌时长”,平台定期生成 “全球 / 好友榜”(如 “好友中你本周听歌时长排名第 3”)。 音乐圈:加入 “特定曲风圈子(如‘古典音乐爱好者’)”,参与 “话题讨论(如‘你心中最经典的钢琴曲’)、线上歌单共创”。 (2)音乐人端(创作者中心) 作品管理: 音乐上传:支持 “无损音频(FLAC/WAV)+ 歌词文件(LRC)+ 专辑封面” 上传,填写 “歌曲信息
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值