Install 7zip & iftop on CentOS7
P7zip_15.14.1 compilation and Installation
#!/bin/bashcd /usr/loacal/src wget http://120.52.73.43/jaist.dl.sourceforge.net/project/p7zip/p7zip/15.14.1/p7zip_15.14.1_src_all.tar.bz2yum install bzip2 gcc-c++ libgcc -ytar xvf p7zip_15.14.1_src_all.tar.bz2 -C /usr/local/cd /usr/local/p7zip_15.14.1make all_testmake && make installln -sv /usr/local/bin/7za /usr/bin/
Encrypted compressed file7za/7z a example.7z *.sh -p
Extract7z x example.7z [-o/tmp/]
Iftop-0.17 compilation Installation
#!/bin/bashyum install flex byacc libpcap ncurses ncurses-devel libpcap-develcd /usr/loacal/src wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gztar xf iftop-0.17.tar.gz -C /usr/local/cd /usr/local/iftop-0.17./configure make && make install
- The first line in the iftop output is the traffic scale, which is used to display the bandwidth traffic of the NIC.
- The left and middle columns of the intermediate part record the host that is connecting to the Local Machine. "=>" indicates sending data, and "<=" indicates receiving data, the right column shows the average traffic value of the external IP address connected to the local machine within 2 s, 10 s, and 40 s in real time.
- TX: The sent traffic;
- RX: received traffic;
- TOTAL: TOTAL traffic sent and received;
- PEAK: PEAK traffic data;
- RATES: average connection bandwidth of the last 2, 10, and 40 seconds.