1. 程式人生 > >CaterPillar's IT Lifes

CaterPillar's IT Lifes

檢視埠
Windows 2000/XP/Server 2003中要檢視埠,可以使用Netstat命令:

依次點選“開始→執行”,鍵入“cmd”並回車,開啟命令提示符視窗。在命令提示符狀態下鍵入“netstat -a -n”,按下回車鍵後就可以看到以數字形式顯示的TCP和UDP連線的埠號及狀態。

小知識:Netstat命令用法
命令格式:Netstat  -a  -e  -n  -o  -s

-a 表示顯示所有活動的TCP連線以及計算機監聽的TCP和UDP埠。

-e 表示顯示乙太網傳送和接收的位元組數、資料包數等。

-n 表示只以數字形式顯示所有活動的TCP連線的地址和埠號。

-o 表示顯示活動的TCP連線幷包括每個連線的程序ID(PID)。

-s 表示按協議顯示各種連線的統計資訊,包括埠號。

關閉/開啟埠
在介紹各種埠的作用前,這裡先介紹一下在

Windows中如何關閉/開啟埠,因為預設的情況下,有很多不安全的或沒有什麼用的埠是開啟的,比如Telnet服務的23埠、FTP服務的21埠、SMTP服務的25埠、RPC服務的135埠等等。為了保證系統的安全性,我們可以通過下面的方法來關閉/開啟埠。

關閉埠
比如在Windows 2000/XP中關閉SMTP服務的25埠,可以這樣做:首先開啟“控制面板”,雙擊“管理工具”,再雙擊“服務”。接著在開啟的服務視窗中找到並雙擊“Simple Mail Transfer Protocol (SMTP)”服務,單擊“停止”按鈕來停止該服務,然後在“啟動型別”中選擇“已禁用”,最後單擊“確定”按鈕即可。這樣,關閉了SMTP服務就相當於關閉了對應的埠。

開啟埠
如果要開啟該埠只要先在“啟動型別”選擇“自動”,單擊“確定”按鈕,再開啟該服務,在“服務狀態”中單擊“啟動”按鈕即可啟用該埠,最後,單擊“確定”按鈕即可。

提示:在
Windows
 98中沒有“服務”選項,你可以使用防火牆的規則設定功能來關閉/開啟埠。

相關推薦

CaterPillar's IT Lifes

檢視埠在Windows 2000/XP/Server 2003中要檢視埠,可以使用Netstat命令:依次點選“開始→執行”,鍵入“cmd”並回車,開啟命令提示符視窗。在命令提示符狀態下鍵入“netstat -a -n”,按下回車鍵後就可以看到以數字形式顯示的TCP和UDP連線的埠號及狀態。小知識:Netst

What's it like to work (dev) in the US as a European?

I am considering moving from Europe (England) to the US. I am a Developer with just under 7 years of experience. I am looking for first hand experiences fr

Peak Xin's IT Blog

JS 跳轉到指定連結 方法一: <script type ="text/javascript"> window.location= "http://www.baidu.com

anjsoft's it blog

terrain   ['terein]     n.地帶,地形 incursion   [in'kə:ʃən]     n.侵犯,入侵 scenography   [si:'nɔgrəfi]     n. 透視畫法, 配景圖法 leapfrog   ['li:pfrɔg]     n.跳背遊

Rain's IT Life

(分類一)根據客戶端執行環境分類:1. 獨立的執行程式 - C/S應用2. 運行於容器中2.1 運行於瀏覽器中 - B/S應用HTML - 典型的B/S系統,CGI、JSP、ASP、PHP、各種模板技術屬於此類Flash,例如Flex技術2.2 運行於特定容器中,例如JWS(

Warning: date(): It is not safe to rely on the system's timezone settings.

bsp ron notice zone asi 警告 family one str PHP調試的時候出現了警告: It is not safe to rely on the system解決方法,其實就是時區設置不正確造成的,本文提供了3種方法來解決這個問題。 實際上,

Lightroom’s Clarity Slider – What Does It Do?

sha linking sting check orm display ane lan rar http://digital-photography-school.com/lightrooms-clarity-slider-what-does-it-do/ With the

[轉]You Could Become an AI Master Before You Know It. Here’s How.

roc -i rod mil eat difficult company been putting 轉自:https://www.technologyreview.com/s/608921/ai-algorithms-are-starting-to-teac

asp.net: what's the page life cycle order of a control/page compared to a user contorl inside it?

life should .com div sid ros ges tco sta https://stackoverflow.com/questions/7335142/asp-net-whats-the-page-life-cycle-order-of-a-control

it's a big trick

時間 點點滴滴 初心 繼續 決定 讓我 加油 blog 回路 今天,正式的登上了我註冊已久的博客園,最初註冊園子得出發點是記錄生活點滴和學習工作的心得的,那就不忘初心,從頭開始吧。 從校園到工作,從東北到南方 我們畢業啦 誰說畢業遙遙無期,轉眼就要各奔東西。 是的,2017

UVa 658 - It's not a Bug, it's a Feature!(Dijkstra + 隱式圖搜索)

index else bug class string 最短 enc 字符串表 字符串 鏈接: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_p

Its Time for a Montage

higher std fan data other who 系列 don n) 問題 I: It’s Time for a Montage 時間限制: 1 Sec 內存限制: 128 MB提交: 64 解決: 25 題目描述 The heroes of your fa

it's time to change myself now (2018.10.31)

知識 lun 過去 不變 算法 讀書 認知 改變 問題   自16年從新屋熊職校畢業,入職深圳某廠從事雲存儲兩年半了。兩年半的時間很快,快的感覺一生都會飛快,兩年多一直很忙,忙的幾乎忘了自己是否正向改變過。   正向改變,or 積極改變,今年十一回家,與幾個好友小聚,開懷暢

STARKs, Part II: Thank Goodness Its FRI-day

我們談到了,如何能夠做出一些非常有意思且簡潔的計算證明,比如通過利用多項式複合和除法技術,證明你算出了第一百萬個斐波那契數。但是,它依託於一個非常重要的元素:給定一個集合,裡面有很多的點,你必須能夠證明集合裡的大部分點都在同一個低次多項式上(譯者注:本文所譯的多項式度數或次數,皆對應 deg

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use

方法一:在程式碼中加入 date_default_timezone_set("PRC");即可 date_default_timezone_set('PRC')表示設定中國時區 方法二 :在配置檔案php.ini中修改配置 在php.ini里加上找到date.timez

It's not a Bug, it's a Feature! UVA - 658 (最短路)

考慮到狀態數較多,我們不選擇存點,而是每次檢測可行的變化方式(即邊)來前進。考慮到所有的bug都只有存在和不存在兩種情況所以選擇使用二進位制進行儲存。 AC程式碼: #include<cstdio> #include<queue> #include<ios

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path

目錄 BUG: 原因: 下載: 完美解決 BUG:  File "D:\python\lib\site-packages\pytesseract\pytesseract.py", line 172, in run_tesseract   &n

'Wise men' of M2M-Kommunikation the German economy have spoken - and it's good news (largely)

‘Wise men’ of M2M-Kommunikation the German economy have spoken - and it’s good news (largely) www.inhandnetworks.de Germany’s council of economic

1005 Spell It Right (20 point(s))

1005 Spell It Right (20 point(s)) Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of

It's as simple as one,two ,three…

Feynman寫過一篇文章“It's as simple as one,two ,three……”在這篇文章裡他討論了“思考”這個問題。 大概是在11、12歲的時候,Feyman和小夥伴Bernie說,思考不過是自己和自己的對話。但Bernie反問道:“你知道汽車的連軸曲杆長什麼樣嗎?”“當然知