1.IIS7建站相关命令
1.启动站点(命令必须放在C:\Windows\System32\inetsrv路径下执行)
appcmd start site 站点名称
示例:(可批量操作)
appcmd start site bbs.zhizhuzx.comII7建站相关命令
2.停止站点(命令必须放在C:\Windows\System32\inetsrv路径下执行)
appcmd stop site 站点名称
示例:(可批量操作)
appcmd stop site bbs.zhizhuzx.com
II7建站相关命令
3.新建网站(命令必须放在C:\Windows\System32\inetsrv路径下执行)
appcmd add site /name:网站名称 /physicalPath:“网站物理路径” /logfile.directory:“网站日志路径” /bindings:http/绑定的IP:绑定的域名
示例:
appcmd add site /name:bbs.aduhb.com /physicalPath:“E:\bbs\web\bbs.aduhb.com” /logfile.directory:“D:\bbs\log\bbs.aduhb.com” /bindings:http/185.23.202.127:80:bbs.aduhb.com

相关文章:

  • 2021-08-26
  • 2021-08-28
  • 2021-08-04
  • 2022-02-19
  • 2021-09-18
  • 2021-12-15
  • 2022-02-01
  • 2021-10-24
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-07-27
  • 2021-09-04
  • 2021-09-17
相关资源
相似解决方案