Skip to content

Instantly share code, notes, and snippets.

@jialechan
Last active December 15, 2016 04:01
Show Gist options
  • Save jialechan/ae2400622be9c147f137c33f8bc3ef43 to your computer and use it in GitHub Desktop.
Save jialechan/ae2400622be9c147f137c33f8bc3ef43 to your computer and use it in GitHub Desktop.
查看本地开放的端口
netstat -antp
检查nginx使用那个端口
netstat -plnt|grep nginx
检查某个进程使用那个端口
netstat -anp |grep 33333
遍历每个目录大小
du -h --max-depth=1
查询外网ip
curl http://169.254.169.254/latest/meta-data/public-ipv4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment