Skip to content

Instantly share code, notes, and snippets.

@simlegate
Last active July 16, 2017 10:01
Show Gist options
  • Save simlegate/6e7d41b0466b87242aa5 to your computer and use it in GitHub Desktop.
Save simlegate/6e7d41b0466b87242aa5 to your computer and use it in GitHub Desktop.

Revisions

  1. simlegate revised this gist Aug 27, 2014. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion linux-command
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,8 @@
    netstat -an | grep 9000

    # 通过list open file命令可以查看到当前打开文件,在linux中所有事物都是以文件形式存在,包括网络连接及硬件设备。
    lsof -i:9000
    lsof -i:9000

    # 查看php.ini文件的位置

    php --ini
  2. simlegate revised this gist Aug 27, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions linux-command
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # 查看网络端口占用情况
    netstat -an | grep 9000

    # 通过list open file命令可以查看到当前打开文件,在linux中所有事物都是以文件形式存在,包括网络连接及硬件设备。
    lsof -i:9000
  3. simlegate created this gist Aug 27, 2014.
    4 changes: 4 additions & 0 deletions linux-command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # 查看网络端口占用情况
    netstat -an | grep 9000

    lsof -i:9000