Ubuntu,mac查看端口命令
来源:互联网 发布:qq视频变声软件 编辑:程序博客网 时间:2024/04/25 12:04
ubuntu查看端口
sudo netstat -antup
#PID为端口号远行进程的号
sudo kill PID(进程码)
# 查看所有打开的端口及服务名(注意这里显示的服务名只是标准端口对应的服务名,可能并不准确)
nmap localhost
# 查看哪些进程打开了指定端口port(对于守护进程必须以root用户执行才能查看到)
lsof -i:port
# 查看哪些进程打开了指定端口port,最后一列是进程ID(此方法对于守护进程作用不大)
netstat -nap|grep port
# 查看端口号对应的系统服务名称
cat /etc/services
# 启动|停止|重启系统服务
sudo /etc/init.d/service start|stop|restart
from http://thiger.blog.hexun.com/46497959_d.html
linux + mac
Lsof命令示例
你可以输入下面的命令来查看IPv4端口:(最好加 sudo)
# lsof -Pnl +M -i4
# sudo lsof -Pnl +M -i4
你可以输入下面的命令来查看IPv6协议下的端口列示:
# lsof -Pnl +M -i6
- # lsof -Pnl +M -i6
0 0
- Ubuntu,mac查看端口命令
- Ubuntu,mac查看端口命令
- ubuntu查看端口命令
- Ubuntu查看端口命令
- ubuntu查看端口命令
- ubuntu, mac 查看端口 port
- MAC查看端口占用命令
- Mac 下查看端口号命令
- Ubuntu端口命令---查看端口占用及关闭
- Mac - 查看端口占用
- MAC-查看端口
- Ubuntu终端命令查看端口占用及关闭
- [Ubuntu]端口情况查看
- ubuntu端口使用查看
- ubuntu查看端口
- ubuntu查看端口
- mac 端口 进程命令
- linux查看端口命令
- Boush
- iOS 多语言支持
- Extjs4之 formpanel使用
- prototype与[[prototype]]
- 我的Java开发学习之旅------>Java经典排序算法之插入排序
- Ubuntu,mac查看端口命令
- POJ 3660 Cow Contest (Floyd求传递闭包)
- android 倒计时处理
- BZOJ 2530 Poi2011 Party 构造
- sudo apt-get remove vim-common不成功,提示被锁Could not get lock /var/lib/dpkg/lock
- 简单的几行小代码,实现Android程序布局替换。
- UINavigationController和UITabBarController合用[转载比较好理解]
- Sensor信号输出YUV、RGB、RAW DATA、JPEG 4种方式区别
- Unity design patterns and concepts, looking for good sources