Linux查看某个端口+gcc动态编译

Linux下就:

1、lsof -i:端口号

2、netstat -tunlp|grep 端口号

gcc:动态编译

gcc –fpic –c file.c –o file.o

gcc –shared file.o –o libfile.so

cp lib*.so /lib    //这样以后就可以直接使用该库了

 

posted @ 2017-04-21 16:23  浪_花  阅读(233)  评论(0编辑  收藏  举报