简体   繁体   中英

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. So I killed this process by doing sudo kill PID in order to free the port. Nevertheless, now the port seems to be occupied by a PID belonging to the root. Is it possible to free this port (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]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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