Install VSFTPD solve Chinese garbled problem

Source: Internet
Author: User
Keywords VSFTPD Chinese garbled
Tags aliyun download file help help you html http install

The vsftpd-2.1.0 version has solved the problem. The latest edition has no need to modify any settings to support a variety of character sets. But if you are still using the lower version of VSFTPD, then the following methods can help you solve the problem of garbled Chinese.

Method One:

Patch Software Downloads:

Http://www.cublohttp://www.aliyun.com/zixun/aggregation/9457.html ">g.cn/u/2340/showart_428936.html

Process:

Download vsftpd-2.0.3.tar.gz,http://download.chinaunix.net/down.php?id=22115&resourceid=11158&site= 1, then extract the folder vsftpd-2.0.3

Download the patch vsftpd-2.0.3-encoding.patch.tar.bz2,http://www.linuxsir.org/bbs/attachment.php?attachmentid=31720&d= 1136009318, decompression to get the patch.

The patch is then copied into the vsftpd-2.0.3 to perform

sudo patch-p1< vsftpd-2.0.3-encoding.patch (last is the patch name) to the source code patch,

Then make compiles, but then with the error generated about SYSDEPUTIL.C, Google to the file to be patched,

Download Http://linuxfromscratch.org/pipe ... 9f56/attachment.bin

Then extract the Attachment.bin (in fact not a binary file), and then copy it into vsftpd2.0.3 's source code to execute patch Sysdeputil.cattachment.bin,

Make it OK,

Finally make install after the successful installation of/etc/vsftpd.conf, add

Charset_filter_enable=yes,

charset_client=gb2312,

Charset_server=utf8.

After testing in Windows, upload a file via FlashFXP, and look normal under Linux.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Method Two:

centos5.2 also out for some time, has not had the opportunity to do, recently had the opportunity, I installed a virtual machine, step-by-step loading up, but on the installation centos5.2 some small details, we need attention.

Is centos5.2 in the installation, I hope you must choose to install the English version of the main reason to do so is to avoid garbled problems, but also to be set up, can completely avoid garbled, we can so set:

We first edit this file vi/root/.bash_profile insert a row of export LANG=ZH_CN. GB2312

The image above is my virtual machine settings, you can be like my settings, you can also insert a line on the/ROOT/.BASHRC

Export LANG=ZH_CN. GB2312, both of these methods are possible.

Related Article

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.