主機端口查看方法匯總


CPL文件,又叫控制面板項(Control Panel Item),多保存於系統安裝目錄的system32文件夾下,它們分別對應着控制面板中的項目,普通用戶的訪問受到限制。它可由shell32.dll、control.exe打開。此外,你也可以直接在資源管理器中雙擊調用Open命令打開(實質上調用了shell32.dll)。
CPL文件本質是Windows可執行性文件,但不屬於可以直接獨立運行的文件,通常由shell32.dll打開。
system32目錄里絕大多數cpl文件是Windows系統文件,具有“存檔”文件屬性,Windows操作系統的文件保護功能保護它們不被篡改。

如:windows防火牆 firewall.cpl

 

常見cpl文件及其作用編輯
inetcpl.cpl,IE設置
joy.cpl,游戲控制器設置
mmsys.cpl,聲音與音頻設置
intl.cpl,區域與語言設置
ncpa.cpl,網絡連接
netsetup.cpl,網絡安裝向導
lusrmgr.cpl,用戶帳戶
odbccp32.cpl,ODBC數據源管理器
wscui.cpl,Windows安全中心
wuaucpl.cpl,自動更新配置
igfxcpl.cpl,Intel集成顯卡設置
nvcpl.cpl,nVidia顯卡設置(NVIDIA控制面板)
access.cpl,輔助功能選項
appwiz.cpl,添加或刪除程序
desk.cpl,顯示屬性
firewall.cpl,防火牆設置
hdwwiz.cpl,添加硬件向導
sysdm.cpl 我的電腦右鍵屬性



1.假設負載均衡前端端口是80,ECS后端端口也是80,ECS內網IP是:10.11.192.1

Windows系統服務器使用如下命令:

netstat -ano | findstr :80

Linux系統服務器使用如下命令:

netstat -anp|grep :80

查詢監控狀態的tcp連接:

netstat -ltp|grep :80

 

如果能看到:10.11.192.1:80的監聽,或者0.0.0.0:80的監聽則說明這部分正常。

2.檢查服務器內網防火牆是否放行80端口,可以暫時關閉防火牆進行測試。

Windows系統可以運行輸入firewall.cpl 操作關閉

Linux系統可以輸入/etc/init.d/iptables stop 關閉

3.如果是4層負載均衡,只要后端端口telnet有響應即可,可以使用telnet 10.11.192.1 80 來測試。如果是7層負載均衡,需要HTTP狀態碼是200 等代表正常的狀態碼。檢驗方法如下:

Windows系統可以直接在ECS內的瀏覽器輸入內網IP測試是否正常,本例是:http://10.11.192.1

Linux系統可以通過curl -I 命令看看狀態是否為HTTP/1.1 200 OK,本例是:curl -I 10.11.192.1

https://help.aliyun.com/document_detail/27702.html
netstat 選項:

OPTIONS
   --verbose , -v
       Tell the user what is going on by being verbose. Especially print some useful information about unconfigured address families.

   --wide , -W
       Do not truncate IP addresses by using output as wide as needed. This is optional for now to not break existing scripts.

   --numeric , -n
       Show numerical addresses instead of trying to determine symbolic host, port or user names.

   --numeric-hosts
       shows numerical host addresses but does not affect the resolution of port or user names.

   --numeric-ports
       shows numerical port numbers but does not affect the resolution of host or user names.

   --numeric-users
       shows numerical user IDs but does not affect the resolution of host or port names.

   --protocol=family , -A
       Specifies the address families (perhaps better described as low level protocols) for which connections are to be shown.  
       family is a comma (',') separated list of address family keywords like inet, inet6, unix,  ipx,  ax25,
       netrom, econet, and ddp.  This has the same effect as using the --inet|-4, --inet6|-6, --unix|-x, --ipx, --ax25, --netrom, and --ddp options.

       The address family inet (Iv4) includes raw, udp, udplite and tcp protocol sockets.

   -c, --continuous
       This will cause netstat to print the selected information every second continuously.

   -e, --extend
       Display additional information.  Use this option twice for maximum detail.

   -o, --timers
       Include information related to networking timers.

   -p, --program
       Show the PID and name of the program to which each socket belongs.

   -l, --listening        Show only listening sockets.  (These are omitted by default.)

   -a, --all
       Show both listening and non-listening (for TCP this means established connections) sockets.  With the --interfaces option, show interfaces that are not up

   -F
       Print routing information from the FIB.  (This is the default.)

   -C
       Print routing information from the route cache.

   delay
       Netstat will cycle printing through statistics every delay seconds.

 

kill進程:
上面的命令找到監聽端口的進程號,就可以使用taskkill命令來停止進程:

taskkill /F /PID 進程Id

taskkill /F /im 映像名 /T

譬如:

tasklist :

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM