zoukankan      html  css  js  c++  java
  • 常用的stsadm命令行参数

    1、feature部署和卸载(installfeature、uninstallfeature)
    安装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、webpart和*.cab部署和卸载(addwppack、deletewppack)
    安装:stsadm -o addwppack -filename [*.cab文件路径]\*.cab
    卸载:stsadm -o deletewppack -name *.cab
    一般情况下,webpart不要直接部署到网站里,用feature部署要好一些。

    3、template的部署和卸载(addtemplate、deletetemplate)
    安装:stsadm.exe -o addtemplate -filename [*.stp文件路径]\*.stp -title [template名称]
    卸载:stsadm.exe –o deletetemplate –title [template名称]

    4、solution部署和卸载(addsolution、deletesolution)
    安装: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、getlock、setlock
    用于在备份backup site collection时访问限制。

  • 相关阅读:
    四则运算2
    四则运算1
    学习进度条
    Mat数据结构
    Markdown语法
    C++继承和派生
    C++智能指针
    clion配置ROS
    视觉十四讲:第六讲_g2o图优化
    视觉十四讲:第六讲_ceres非线性优化
  • 原文地址:https://www.cnblogs.com/chenjq0717/p/1738537.html
Copyright © 2011-2022 走看看