### 1.netstat -ano | findstr :6060 查詢port號狀態 ### 2.taskkill /PID 1580 /F 強制關閉port號  ### 3.putty連接測試機-/opt/CARBON/logs/ec,看log,(apache設定):/etc/httpd/conf/httpd.config, [putty使用](https://zhucebaike.com/putty-tutorial/) [指令](https://ithelp.ithome.com.tw/articles/10190777)  複製,右鍵貼上密碼    ``` tail -f 傾聽文件指令 ctrl+c 終止傾聽 ctrl+d 停止putty連接 ``` ### 4.常用CMD指令 ``` (1)ll或ls :顯示目前層所有資料夾 (2)cd xxx :進入特定資料夾 (3)tail -f xxx :監聽特定資料夾 (4)ctrl+c :關閉 (5)cd .. :上一層 (6)cat xxx:印出資料夾 ``` ### 5.監聽測試機log ``` cd /opt/alllogs/ec -> tail -f -n 100 system.log (可以看到最後100行log) ```  ```c++ //關閉carbon service服務 systemctl start stop_CARBON.service //開啟carbon service服務 systemctl start start_CARBON.service //執行sh檔 sh xxx.sh 例:sh run.sh //啟動伺服器 ``` 4.telnet用戶端安裝,可用於查看port號有沒有開通  開啟CMD 輸入測試:telnet 127.0.0.1 :5432 ### 6.查詢Server語言 ``` //查詢主要語言 echo $LANG 各個語系:locale 系統可用語系:locale -a ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up