After Linux installs the Swoole, the test UDP service needs to use the Netcat, however the Baidu has many installs the method, and does not have a useful. After several attempts, finally installs the success, now shares to everybody, for the reference.
Configuration environment: centos6.3
1. Download the installation package ( may prompt: Unable to establish an SSL connection, if prompted please Baidu download the installation package )
wget https://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz
2. Unzip the file and extract it to/usr/local
TAR-ZXVF netcat-0.7.1.tar.gz-c/usr/local
3. Switch to/usr/local/netcat-0.7.1
1> viewing the compilation configuration file
./configure
2> Compiling and installing
Make && make install
4. Configuration
1> Switch to/etc/profile
2> Edit configuration file Vim/etc/profile, join:
Export netcat_home=/usr/local/netcat-0.7.1
Export path= $PATH: $NETCAT _home/bin
CentOS Installation Netcat