EDTFTPJ is a Java FTP toolkit that is easy to use and feels more usable than Apache, but Apache is more flexible. EDTFTPJ is available in a variety of versions, Java,. NET, and JS. There is a free version for the Java version. I'm using the free version. The rest are commercial versions.for development, download the fr
Wrote a simple FTP client, this client mainly uses the FtpClient class, this class is in the JDK Lib/rt.jar package. Now realize the file upload, folder upload. The rest of the functionality needs to be supplemented.
The code is as follows:
Import Java.io.File;Import Java.io.FileInputStream;Import java.io.IOException;
Import Sun.net.TelnetOutputStream;Import sun.
In front, we played HTTP, quite a bit of meaning, in this article, we continue to play FTP (File Transfer Protocol). Both HTTP and FTP are application-layer protocols built on TCP, no matter how they are packaged, how they are loaded bigger, and ultimately TCP end-to-end transmission. This paper is divided into two parts: first. Use Wireshark to capture the content of F
Use the Apache FTP client to obtain the file list on the FTP Server FTP Response 421 resolved ed. Server closed connection
@ For ever 2009-12-09
Use the Apache FTP client (Java open
Linux on the Internet cannot be connected to ftp_connect of php through ftp commands. I tried three machines and can ping them. However, the system remains in the waiting state during the initial connection, not to mention logging on to the ftp server. However, the local windows Server can be connected through the ftp commands in the
Public network of Linux through the FTP command and PHP ftp_connect can not connect, tried 3 machines, can ping, but in the initial connection when the time has been waiting, not to mention the landing FTP server.
However, the local Windows machine can be connected and logged on via the FTP command under the client or
client/mnt/directory and write something[[email protected] ~]# ls-l/tmp///Viewing the file and client files in the server/tmp/directory is root, because we have defined in the/etc/exports file no restrictions on the root user/tmp 192.168.238.130 (Rw,sync,no_root_squash)II. Client Issues with NFSIssue: After the client
not root or limited to 1000, but instead show the nobody, which is the problem with the NFS 4 version, especially on the CENTOS6 system
Workaround:
Method One: When the client mounts, plus-o nfsvers=3, meaning that the version of NFS is specified as 3, not in the 4 version
Mount-t nfs-o nfsvers=3 192.168.202.130:/tmp//mnt/
If you do not want to uninstall, the direct mount, you can use Mount-t nfs-ore
-f /etc/vsftpd/vsftpd_login /etc/vsftpd/vsftpd_login.db //将密码转换为二进制文件 mkdir /etc/vsftpd/vsftpd_user_conf cd /etc/vsftpd/vsftpd_user_conf
The profile name is the same as the user name in the user password filevim testuser1 //加入如下内容local_root=/home/virftp/testuser1 //指定虚拟用户的家目录anonymous_enable=NO //是否允许匿名用户write_enable=YES //是否允许可写local_umask=022 //创建文件或目录的默认权限anon_upload_enable=NO //是否允许匿名用户上传anon_mkdir_write_enable=NO //是否允许匿名用户创建文件夹,写文件idle_session_timeout=600
One: When the client mounts, plus-o nfsvers=3, meaning that the version of NFS is specified as 3, not in the 4 versionMount-t nfs-o nfsvers=3 192.168.202.130:/tmp//mnt/If you do not want to uninstall, the direct mount, you can use Mount-t nfs-oremount,nfsvers=3 192.168.202.130:/tmp//mnt/(if the first to mount)Method Two: Change the configuration file vim/etc/idmapd.conf, "#Domain = local.domain.edu" to "Domain = xxx.com" (Here xxx.com, feel free to d
virftp:virftp/home/virftp--folder directory a Read permission
VIM/ETC/PAM.D/VSFTPD//At the front Plus
auth sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login #最开始二进制定义的密码文件account sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login #最开始二进制定义的密码文件Note: in CENTOS6 "/lib64/security/pam_userdb.so" The file needs to be differentiated between 32-bit and 64-bit versions
vim/etc/vsftpd/vsftpd.conf--Edit master configuration file
Change
check parent directory permissionsAll_squash any visitor to anonymous YongRoot_squash Root user accesses this directory and maps to the same permissions as the anonymous user (default)No_root_squash root user access to this directory with root operation privilegesIntroduction to FTPFTP is the abbreviation for the file Transfer Protocol (document Transfer Protocol), which is used to control the two-way transmission of files over the Internet.The primary role of
Exportfs commandThe EXPORTFS command can add a shared directory without restarting the NFS service.
Test: First change the server-side NFS configuration file
[[emailprotected] ~]# vim /etc/exports ##增加以下内容/tmp 192.168.63.101(rw,sync,no_root_squash) ##共享给192.168.63.101这个ip
Executive Exportfs-arv
[[emailprotected] ~]# exportfs -arv
Mount on client
[[emailprotected] ~]# mount -t nfs 192.168.6
can refer to: http://blog.csdn.net/xiaozhang0731/article/details/5669151
The main use of the net package in Apache to achieve. URL http://commons.apache.org/net/. Download the specific package and API documentation please reader network.
A breakpoint upload sets the starting position of the transmission during the upload process. and set the binary transmission. Java codePackageApache.net.test;ImportJava.io.File;ImportJava.io.FileInputStream;ImportJ
Reference 1 click the Open linkReference 2 Click the Open linkCodeClient.cpp: Defines the entry point of the console application. #include "stdafx.h" #include Using the C language socket to enable the Windows PC to communicate with the FTP server---socket implementation FTP client
Python implements a simple ftp client, pythonftp Client
This example describes how to implement a simple ftp client using python. Share it with you for your reference. The specific implementation method is as follows:
#! /Usr/bin/python #-*-coding: UTF-8-*-import ftplibimpor
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.