linux 基础命令 记录

查看 端口 占用 :  lsof -i:9502     netstat -tunlp |grep 9501

强杀进程 : kill -s 9 10369

ps afc  | grep xxxx.php 查看 文件开启了几个进程

查看程序进程数:ps aft | grep tcp.php
查看系统核心数:cat /proc/cpuinfo | grep 'cores' | uniq
连接:telnet 127.0.0.1 9501
ctrl+] ,quit退出

tail [ -f ]   xxx.xx      tail会自己主动刷新,确保你看到最新的档案内容。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章