#suse 的netstat 解决方案 - 20211018

#suse 的netstat 解决方案 - 20211018

想要看看服务器上都有哪些端口在访问,用一下netstat,结果竟然没有办法使用。

operator@OA8PRD:~> netstat
If ‘netstat’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf netstat

operator@OA8PRD:/> lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 12
Release: 12
Codename: 12
SUSE的版本是SUSE Linux Enterprise Server 12。

operator@OA8PRD:~> cnf netstat

The program ‘netstat’ can be found in following packages:

  • net-tools [ path: /bin/netstat, repository: zypp (update) ]
  • net-tools [ path: /bin/netstat, repository: zypp (SLES12-12-0) ]

Try installing with:
sudo zypper install net-tools

operator@OA8PRD:~> sudo zypper install net-tools

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

root’s password:
Loading repository data…
Reading installed packages…
‘net-tools’ is already installed.
No update candidate for ‘net-tools-1.60-764.185.x86_64’. The highest available version is already installed.
Resolving package dependencies…

奇了怪了,SUSE百度能查到的资源不多,翻墙到海外google终于找到了一点资料。

Deprecated Tool Alternative Tool
arp ip n
ifconfig ip a
ipmaddr ip maddr
iptunnel ip tunnel
netstat ss
ip route (netstat -r)
ip -s link (netstat -i)
route ip r
mii-tool ethtool
nameif ifrename
原来是要废弃了啊!那就是ss -t好了。
————————————————
版权声明:本文为CSDN博主「samson_www」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/samson_www/article/details/80377431

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值