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