windows
用 netstat 命令
C:\>netstat -ano | findstr 0.0:80
結果
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1860
其中 1860 就是佔用 port 的程式 PID,再輸入
C:\>tasklist | findstr 1860
得到如下的資訊
httpd.exe 1860 Services ...
2017年11月21日 星期二
2017年10月27日 星期五
如何在 eclipse 快速地 stop/terminate 一個 java application
參考此篇:
https://stackoverflow.com/questions/321118/what-is-the-short-cut-in-eclipse-to-terminate-debugging-running
直接講結論:要使用快速鍵的話,要切換到 debug view 就會有效。
但是......如何在不切換 view 的情況下 stop/terminate 呢...
2017年10月12日 星期四
cmd script 自動產生日期、時間字串,並 copy 到剪貼簿中
要先定義 os.date & os.time 的字串格式
For /f "tokens=1-4 delims=- " %%a in ('date /t') do (set _thisDate=%%a%%b%%c)
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set _thisTime=%%a%%b)
set _thisDateTime=%_thisDate%.%_thisTim...
2017年10月5日 星期四
redis monitor
監控 redis 現在被呼叫 (查詢) 的狀...
2017年10月2日 星期一
Is there a “Find in Files” shortcut in Eclipse? [memo@slackoverflow]
https://stackoverflow.com/questions/7569630/is-there-a-find-in-files-shortcut-in-eclips...
2017年9月28日 星期四
如何 mirror 一個 git-project (old) 到另一個 git-project (new)
若要完整備份協同專案到自家的私人 repo 中,這招就很好用.....
2017年9月26日 星期二
partial-search-in-hashmap In Java
如何 search hash map
參考:https://stackoverflow.com/questions/6713239/partial-search-in-hashmap...
2017年9月11日 星期一
Java 取亂數 A-Z / a-z
先前筆記過在 java 中用 Math.random() 實作一個亂數 (數字)。
今天來搞一個 A-Z / a-z 的字母亂數...
2017年9月8日 星期五
Java 取亂數 Math.random()
java.lang 中的 Math 類別定義了 random()
(double) ran = Math.random(...
2017年9月4日 星期一
寫個 bat 每個 n 秒執行一次
簡易版參考語法如...
訂閱:
文章 (Atom)