需要使用netstat命令
1.安装netstat命令
[root@localhost www]# yum -y install netstat
2.查看端口号
[root@localhost www]# netstat -antup|grep ftp
tcp6?????? 0????? 0 :::21?????????????????? :::*??????????????????? LISTEN????? 45643/vsftpd???
当然如果要查询端口号也可以直接输入netstat -antup|grep 你的端口号(比如80)
Copyright © 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码