apt-get install fping
这个好像是3.13版本的vim
看官方已经更新到4.2版本了,下面经过包安装bash
Ubuntu要先安装build-essential,不然可能报错:configure: error: no acceptable C compiler found in $PATH apt-get install build-essential wget https://fping.org/dist/fping-4.2.tar.gz tar zxvf fping-4.2.tar.gz cd fping-4.2/ ./configure --prefix=/usr/local/fping make make install /usr/local/fping/sbin/fping -V
安装完成,配置下环境变量ui
> vim /etc/profile #在最后面添加 export PATH=$PATH:/usr/local/fping/sbin > source /etc/profile > fping -v