简体   繁体   English

在 linux 上打开 root 拥有的端口?

[英]open a port owned by root on linux?

I am currently working with docker, the image of my container is on port 49161, however, the port was occupied by another process.我目前正在使用 docker,我的容器映像位于端口 49161,但是该端口已被另一个进程占用。 So I killed this process by doing sudo kill PID in order to free the port.所以我通过执行 sudo kill PID 来终止这个进程以释放端口。 Nevertheless, now the port seems to be occupied by a PID belonging to the root.然而,现在该端口似乎被属于根的 PID 占用。 Is it possible to free this port (49161)?是否可以释放此端口(49161)?

COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
findmydev 267 root    4u  IPv6 0xcf3f933fd8e68451      0t0  TCP [fe80:4::aede:48ff:fe00:1122]:49161->[fe80:4::aede:48ff:fe33:4455]:49169 (ESTABLISHED) 

try this out试试这个

 pgrep -u root [processID]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM