【小贴士】centos安装nc

wget https://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz
tar -zxvf netcat-0.7.1.tar.gz -C /usr/local
cd /usr/local
mv netcat-0.7.1 netcat
cd /usr/local/netcat
./configure
make && make install

配置文件
vim /etc/profile
添加以下内容:

export NETCAT_HOME=/usr/local/netcat
export PATH=$PATH:$NETCAT_HOME/bin


保存,退出,并使配置生效:
source /etc/profile

你可能感兴趣的:(【小贴士】centos安装nc)