Solution to vsftp garbled characters in centos6.3

Source: Internet
Author: User
The vsftp garbled solution under centos6.3 has always been a tangle of issues. Today, we have adopted a method of saving the nation through a curve. Fuse and fuse-convmvfs are used to download fuse-2.9.1.tar.gzand fuse-convmvfs-0.2.6.tar.gz and then decompress the package...
Vsftp garbled in centos 6.3 has always been a tangle of issues. Today, we have adopted a method of saving the nation by curve. Fuse and fuse-convmvfs are used to download fuse-2.9.1.tar.gzand fuse-convmvfs-0.2.6.tar.gz and then install fuse www.2cto.com on/usr/local/src.
Java code [root @ server1 ~] # Cd fuse-2.9.1 [root @ server1 ~] #./Configure -- prefix =/usr/lib/java/fuse -- mandir =/usr/share/man [root @ server1 ~] # Make & make install [root @ server1 ~] # Echo "/opt/fuse/lib">/etc/ld. so. conf # import the fuse class library [root @ server1 ~] # Ldconfig # import the fuse class library [root @ server1 ~] # Modprobe fuse # load the fuse module and install the fuse-convmvfsJava code [root @ server1 ~] # Cd fuse-convmvfs-0.2.6 [root @ server1 ~] #./Configure -- prefix =/usr/lib/java/fuse-convmvfs -- mandir =/usr/share/man [root @ server1 ~] # Make & make install: after installation is complete, run the/usr/lib/java/fuse-convmvfs/bin/convmvfs command.
Run the following statement: www.2cto.com Java code convmvfs/var/ftp/pub_gbk-o srcdir =/var/ftp/pub, icharset = utf8, ocharset = gbk. when accessing/ftp/pub_gbk, the file names are all GBK, so there will be no garbled characters in windows. (My ftp root directory is/var/ftp) if you do not want to see the pub directory, you only need to go to/etc/vsftpd. set the Java code anon_root =/var/ftp/pub local_root =/var/ftp/pub in the conf file to locate the root directory to pub, and solve the garbled problem. At the same time, we need to upload the file to the/var/ftp/pub_gbk folder when uploading the file on the server, the client accesses the image in the pub folder in the pub_gbk folder.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.