FTP file upload and download

During the development of uploading and downloading files on FTP, you can log in to the FTP server, but the upload and download always report an error. After that, the FTPClient.enterLocalPassiveMode() method is added before the operation. Success.Note: call ftp client. Enterlocalpassivemode(); this method means that before each data connectio ...

Posted by kidsleep on Tue, 03 Dec 2019 03:34:32 -0800

Vsftpd realizes user authentication based on MySQL

VSFTP introduction VSFTP is a kind of FTP server software used on Unix like system published based on GPL. Its full name is Very Secure FTP. Software installation yum install vsftpd mariadb-server mariadb-devel pam-devel -y wget http://prdownloads.sourceforge.net/pam-mysql/pam_mysql-0.7RC1.tar.gz tar xf pam_mysql-0.7RC1.tar.gz cd pam_mysq ...

Posted by maGGot_H on Sat, 23 Nov 2019 13:24:44 -0800

ubuntu uses vsftpd to create FTP service

vsftpd introduction vsftpd is the abbreviation of "very secure FTP daemon". Security is one of its biggest features. vsftpd is the most popular FTP server program in Linux distribution. It is characterized by small, light, safe and easy to use. ubuntu install vsftpd $ sudo apt-get install vsftpd Configure vsftpd ...

Posted by mlampard on Sat, 16 Nov 2019 10:53:53 -0800

iptables setting h323 dynamic open port

iptables setting h323 dynamic open port 1. Insert h323 module In order to support the h323 protocol, the kernel needs to insert the NF conntrack, NF NAT, and h323 modules. modprobe nf_conntrack_h323 modprobe nf_nat_h323 2. Configure iptables rules h323 uses 1719, 1720 ports. But mainly use port 1720. The prototype of ip ...

Posted by bobby317 on Sat, 16 Nov 2019 09:52:19 -0800

Network communication socket: network communication addressing, protocol cluster and socket type finding service information

11.2.1.2 find service information In addition to the IP address, each socket address includes an integer port number. Many applications can run on the same host and listen to an IP address, but only one socket can use the port of that address at a time. By combining IP address, protocol and port number, a communication ...

Posted by mayanktalwar1988 on Fri, 08 Nov 2019 13:18:31 -0800

vsftpd service configuration in Linux (anonymous, user, virtual user)

vsftpd overview vsftpd is the abbreviation of "very secure FTP daemon". Security is one of its biggest characteristics. vsftpd is the name of a server running on a UNIX like operating system. It can run on systems such as Linux, BSD, Solaris, HP UNIX, etc. it is a completely free, open source FTP server software that supports many f ...

Posted by Shovinus on Tue, 05 Nov 2019 09:04:01 -0800

Verification and data processing

Verification and data processing 1. URL verification // 1. verify url function isURL(str_url) { var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" // user@ of ftp + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // URL in IP form ...

Posted by backie on Thu, 31 Oct 2019 08:55:24 -0700

FTPClient reads files continuously

Recently, when using FTPClient to continuously read the contents of multiple files on ftp, we encountered two problems: 1. In the for loop, FTPClient can only read the contents of the first file. When reading the second file, it encountered NPE problems. 2. The program is locked. Next, we will analyze the problems encountered and provide sol ...

Posted by PHPcadet on Fri, 25 Oct 2019 11:16:52 -0700

Complete steps of source code installation of Nginx on centos7 platform

1. install make yum install gcc automake autoconf libtool make 2. install gcc yum install gcc gcc-c++ 3. Install pcre Library Download address: https://pan.baidu.com/s/13Kojg2Xcnp06qiw023uHoQ Upload the downloaded pcre-8.35.tar.gz through ftp to the directory / usr/local/src of centos7. cd /usr/local/src # New pcre directory mkdir /usr ...

Posted by xux on Fri, 25 Oct 2019 09:40:19 -0700

sort and uniq: sorting tools for Shell programming

This article mainly writes some shell script sorting tools. sort Summary Sort is a tool to sort the contents of files in behavioral units, or according to different data types. usage sort parameter -f: ignore case-b: ignore the space before each line-M: sort by month-n: sort by number-r: reverse sort-u: equivalent to uniq, indicating that o ...

Posted by Bluemercury on Wed, 16 Oct 2019 14:01:17 -0700