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.
Linux常用命令
# 查看网络端口占用情况
netstat -an | grep 9000
# 通过list open file命令可以查看到当前打开文件,在linux中所有事物都是以文件形式存在,包括网络连接及硬件设备。
lsof -i:9000
# 查看php.ini文件的位置
php --ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment