关于PPTP 和L2TP VPN的端口 以及linux下面查看占用端口进程的方法

l2tp 1701/udp
pptp 1723/tcp

懒得说明了,真正懂的一眼就看懂了,下面说说怎么查占用端口的进程

server ~ # netstat -anp |grep 1701
udp 0 0 0.0.0.0:1701 0.0.0.0:* 5986/xl2tpd

说明进程号为5986的进程占用了1701端口,可能是进程挂了,成了僵尸,所以常规的方法无法停止进程了,只能kill -9 5986 这样强制干掉了,下面启动xl2tpd就很顺利了

server ~ # /etc/runlevels/default/xl2tpd start
* Starting xl2tpd ... [ ok ]

您可以RSS 2.0订阅。 留言,或者引用 Trackback

发表评论

XHTML:您可使用下列标签:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

点击下图中要求你点击的地方提交评论