网站开发常用cmd命令

一、Windows服务安装:

framework 4.0 : cd C:WindowsMicrosoft.NETFrameworkv4.0.30319

framework 2.0 :  cd C:WindowsMicrosoft.NETFrameworkv2.0.50727

安装服务 :InstallUtil.exe D:service服务名.exe   //D盘是我程序的位置

删除服务:sc delete 服务名

二、查看对应网站的w3wp进程

IIS6:进入cmd,执行  iisapp -a

IIS7:cmd执行  cd C:WindowsSystem32inetsrv ,执行  appcmd list wp

三、查看已占用的端口

cmd执行  netstat -ano

根据PID查询端口:netstat -ano|find "PID"

根据端口查询PID:netstat -ano|findstr  80

根据PID查询程序:tasklist|findstr "PID"

四、chrome浏览器跨域

cmd执行  chrome --disable-web-security

原文地址:https://www.cnblogs.com/zxiong/p/5015605.html