ubuntu查看端口占用

查看端口号

sudo netstat -ltnp | grep :80

结束进程

sudo kill pid

ubuntu查看端口占用

时间: 2024-07-30 07:12:28

ubuntu查看端口占用的相关文章

Ubuntu终端命令--查看端口占用及关闭

Ubuntu查看端口使用情况,使用netstat命令: 查看已经连接的服务端口(ESTABLISHED) netstat -a 查看所有的服务端口(LISTEN,ESTABLISHED) netstat -ap 查看指定端口,可以结合grep命令: netstat -ap | grep 8080 也可以使用lsof命令: lsof -i:8888 若要关闭使用这个端口的程序,使用kill + 对应的pid kill -9 PID号 原文地址:https://www.cnblogs.com/fen

【mark】linux查看端口占用

原文:http://yuangeqingtian.blog.51cto.com/6994701/1188023 Linux下查看进程占用端口: 查看程序对应进程号:ps –ef|grep 进程名 REDHAT :查看进程号所占用的端口号:netstat –nltp|grep 进程号<?xml:namespace prefix="o">?xml:namespace> ubuntu:查看进程占用端口号:netstat -anp|grep pid Linux下查看端口号所使

Linux 查看端口占用情况

转自:http://www.cnblogs.com/fabulousyoung/p/4071150.html 例子,查看80端口的占用情况: lsof -i:80 或者: netstat -apn | grep 80 上面的命令执行之后可以显示进程号,找到进程号以后,再使用以下命令查看详细信息: ps -aux | grep <进程号> 附: windows下查看端口占用命令: netstat -ano | findstr 80 windows下查看进程列表命令: tasklist

RC-50221 问题解决 - netstat 查看端口占用情况

查看端口占用情况 netstat -an|grep LIST|grep 15     数据库监听占用情况. netstat -an|grep 1521                  1521为端口号 使用如下语句kill占用端口的进程 linux下杀掉占用端口的进程 ps -efww|grep appltest|grep -v grep|cut -c 9-15|xargs kill -9 AIX下杀掉占用端口的进程 ps -ef | grep "appltest" | grep -

怎样查看端口占用情况

步骤/方法 开始-运行-输入cmd-打开命令行窗口   输入:netstat -aon|findstr "端口号" 如输入netstat -aon|findstr "1433",回车,有以下信息显示TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 1956 其中"1956"为占用"1433"端口的进程号 3 输入:tasklist|findstr "进程号" 如输入tasklist|

查看端口占用情况

1.查看所有的端口占用情况 netstat -ano 协议   本地地址               外部地址     状态            PID TCP   127.0.0.1:1434    0.0.0.0:0   LISTENING  3236 2.查看指定端口的占用情况 netstat -aon|findstr "9050" 协议    本地地址                外部地址         状态            PID TCP    127.0.0.1

Centos查看端口占用情况和开启端口命令

1.Centos查看端口占用 比如查看80端口占用情况使用如下命令: lsof -i tcp:80 2.列出所有端口 netstat -ntlp 3.开启端口(以80端口为例) 3.1 方法一: 写入修改 /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 保存修改 /etc/init.d/iptables save 重启防火墙,修改生效 service iptables restart 3.2 方法二: 打开配置文件加入如下语句: vi /e

Dos命令查看端口占用及关闭进程

1. 查看端口占用 在windows命令行窗口下执行: netstat -aon|findstr "8080" TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448 端口"8080"被PID(进程号)为2448的进程占用. 查看端口"8080"被哪个应用占用,,继续执行下面命令: tasklist|findstr "2448" notepad.exe 2016 Console 0 16,064 K

Dos命令查看端口占用及关闭进

Dos命令查看端口占用及关闭进程 1. 查看端口占用 2. 关闭进程 3. 端口状态 1. 查看端口占用 在windows命令行窗口下执行: netstat -aon|findstr "8080" TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448 端口“8080”被PID(进程号)为2448的进程占用. 查看端口“8080”被哪个应用占用,,继续执行下面命令: tasklist|findstr "2448" notepad.exe