- root@nginx-56b8c64cb4-t97vb:/# cat /etc/os-release #查看 linux 发行版本
- PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
- NAME="Debian GNU/Linux"
- VERSION_ID="8"
- VERSION="8 (jessie)"
- ID=debian
一, Debian 和 Ubuntu 系列
(1) 搜索需要的包
apt-cache search net-tools
(2) 安装需要的包
apt-get install net-tools
二, Centos 系列
来源: http://www.bubuko.com/infodetail-2578022.html