windows常用命令汇总
端口映射
netsh interface portproxy add v4tov4 listenport=22 listenaddress=172.27.49.143 connectaddress=192.168.56.2 connectport=22
netsh interface portproxy add v4tov4 listenport=22 listenaddress=192.168.0.103 connectaddress=192.168.56.3 connectport=22
进程管理
netstat -aon | findstr "8018"
tasklist | findstr "8792"
taskkill /pid 8792 /f
get-process -name power*
get-process nginx
get-process nginx|Stop-Process
后台运行
powershell -windowstyle hidden -command "java -jar BootApp.jar" | Out-File BootApp.log
powershell -windowstyle hidden -command "java -jar BootApp.jar" | Out-File BootApp.log
frp命令
./frpc -c ./frpc.ini
powershell -windowstyle hidden -command "./frpc -c ./frpc.ini" | Out-File Frp.log