<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>读思客 &#187; proftpd</title>
	<atom:link href="http://www.dusike.com/tag/proftpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dusike.com</link>
	<description>蔡文卫//创业经历与实践经验分享...</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:08:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>如果只是内部使用，我还是喜欢vsftpd小而简单</title>
		<link>http://www.dusike.com/%e5%a6%82%e6%9e%9c%e5%8f%aa%e6%98%af%e5%86%85%e9%83%a8%e4%bd%bf%e7%94%a8%ef%bc%8c%e6%88%91%e8%bf%98%e6%98%af%e5%96%9c%e6%ac%a2vsftpd%e5%b0%8f%e8%80%8c%e7%ae%80%e5%8d%95/</link>
		<comments>http://www.dusike.com/%e5%a6%82%e6%9e%9c%e5%8f%aa%e6%98%af%e5%86%85%e9%83%a8%e4%bd%bf%e7%94%a8%ef%bc%8c%e6%88%91%e8%bf%98%e6%98%af%e5%96%9c%e6%ac%a2vsftpd%e5%b0%8f%e8%80%8c%e7%ae%80%e5%8d%95/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 06:57:34 +0000</pubDate>
		<dc:creator>LEO</dc:creator>
				<category><![CDATA[产品技术]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[vfftpd]]></category>

		<guid isPermaLink="false">http://www.dusike.com/?p=1718</guid>
		<description><![CDATA[背景 本来服务器centos5.3用的是xampp包，自带proftpd，可是我们用程序上传图片时，遇到3级目录，或者目录数很多时就有可能创建目录失败，一直没有找到原因。没有办法，换成VSFTPD，结果还把问题解决了。下面是安装配置说明。 安装 yum install vsftd 配置 # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is [...]]]></description>
			<content:encoded><![CDATA[<p>背景</p>
<p>本来服务器centos5.3用的是xampp包，自带proftpd，可是我们用程序上传图片时，遇到3级目录，或者目录数很多时就有可能创建目录失败，一直没有找到原因。没有办法，换成VSFTPD，结果还把问题解决了。下面是安装配置说明。</p>
<p>安装</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p>yum install vsftd</p></blockquote>
<p>配置</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p># Example config file /etc/vsftpd/vsftpd.conf<br />
#<br />
# The default compiled in settings are fairly paranoid. This sample file<br />
# loosens things up a bit, to make the ftp daemon more usable.<br />
# Please see vsftpd.conf.5 for all compiled in defaults.<br />
#<br />
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.<br />
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's<br />
# capabilities.<br />
#<br />
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).<br />
anonymous_enable=YES<br />
#<br />
# Uncomment this to allow local users to log in.<br />
local_enable=YES<br />
#<br />
# Uncomment this to enable any form of FTP write command.<br />
write_enable=YES<br />
#<br />
# Default umask for local users is 077. You may wish to change this to 022,<br />
# if your users expect that (022 is used by most other ftpd's)<br />
local_umask=022<br />
#<br />
# Uncomment this to allow the anonymous FTP user to upload files. This only<br />
# has an effect if the above global write enable is activated. Also, you will<br />
# obviously need to create a directory writable by the FTP user.<br />
#anon_upload_enable=YES<br />
#<br />
# Uncomment this if you want the anonymous FTP user to be able to create<br />
# new directories.<br />
#anon_mkdir_write_enable=YES<br />
#<br />
# Activate directory messages - messages given to remote users when they<br />
# go into a certain directory.<br />
dirmessage_enable=YES<br />
#<br />
# Activate logging of uploads/downloads.<br />
xferlog_enable=YES<br />
#<br />
# Make sure PORT transfer connections originate from port 20 (ftp-data).<br />
connect_from_port_20=YES<br />
#<br />
# If you want, you can arrange for uploaded anonymous files to be owned by<br />
# a different user. Note! Using "root" for uploaded files is not<br />
# recommended!<br />
#chown_uploads=YES<br />
#chown_username=whoever<br />
#<br />
# You may override where the log file goes if you like. The default is shown<br />
# below.<br />
xferlog_file=/var/log/vsftpd.log<br />
#<br />
# If you want, you can have your log file in standard ftpd xferlog format<br />
xferlog_std_format=YES<br />
#<br />
# You may change the default value for timing out an idle session.<br />
#idle_session_timeout=600<br />
#<br />
# You may change the default value for timing out a data connection.<br />
#data_connection_timeout=120<br />
#<br />
# It is recommended that you define on your system a unique user which the<br />
# ftp server can use as a totally isolated and unprivileged user.<br />
#nopriv_user=ftpsecure<br />
#<br />
# Enable this and the server will recognise asynchronous ABOR requests. Not<br />
# recommended for security (the code is non-trivial). Not enabling it,<br />
# however, may confuse older FTP clients.<br />
#async_abor_enable=YES<br />
#<br />
# By default the server will pretend to allow ASCII mode but in fact ignore<br />
# the request. Turn on the below options to have the server actually do ASCII<br />
# mangling on files when in ASCII mode.<br />
# Beware that on some FTP servers, ASCII support allows a denial of service<br />
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd<br />
# predicted this attack and has always been safe, reporting the size of the<br />
# raw file.<br />
# ASCII mangling is a horrible feature of the protocol.<br />
#ascii_upload_enable=YES<br />
#ascii_download_enable=YES<br />
#<br />
# You may fully customise the login banner string:<br />
#ftpd_banner=Welcome to blah FTP service.<br />
#<br />
# You may specify a file of disallowed anonymous e-mail addresses. Apparently<br />
# useful for combatting certain DoS attacks.<br />
#deny_email_enable=YES<br />
# (default follows)<br />
#banned_email_file=/etc/vsftpd/banned_emails<br />
#<br />
# You may specify an explicit list of local users to chroot() to their home<br />
# directory. If chroot_local_user is YES, then this list becomes a list of<br />
# users to NOT chroot().<br />
#chroot_list_enable=YES<br />
# (default follows)<br />
#chroot_list_file=/etc/vsftpd/chroot_list<br />
#<br />
# You may activate the "-R" option to the builtin ls. This is disabled by<br />
# default to avoid remote users being able to cause excessive I/O on large<br />
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume<br />
# the presence of the "-R" option, so there is a strong case for enabling it.<br />
#ls_recurse_enable=YES<br />
#<br />
# When "listen" directive is enabled, vsftpd runs in standalone mode and<br />
# listens on IPv4 sockets. This directive cannot be used in conjunction<br />
# with the listen_ipv6 directive.<br />
listen=YES<br />
#<br />
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6<br />
# sockets, you must run two copies of vsftpd whith two configuration files.<br />
# Make sure, that one of the listen options is commented !!<br />
#listen_ipv6=YES</p>
<p>pam_service_name=vsftpd<br />
userlist_enable=YES<br />
tcp_wrappers=YES</p></blockquote>
<p>启动/停止</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p>/opt/lampp/lampp stopftp  #这一步不是每个人都有必要，因为我先安装了proftpd,所以需要先停止它</p>
<p>chkconfig vsftpd on</p>
<p>service vsftpd start</p>
<div>service vsftpd stop</div>
<div> </div>
</blockquote>
<p dir="ltr">用户增加与管理</p>
<blockquote style="margin-right: 0px;" dir="ltr">
<div id="postmessage_4013636" class="t_msgfont">这个配置，支持所有linux里加的所有用户，每个用户的FTP目录，就是其帐号创建时的默认目录。另外，这个配置还支持匿名用户登录，其目录为/var/ftp/pub</div>
</blockquote>
<p dir="ltr">查看运行状态</p>
<blockquote style="margin-right: 0px;" dir="ltr">
<div id="postmessage_4013636" class="t_msgfont">查看连接</div>
<div class="t_msgfont">netstat grep ftp</div>
<div class="t_msgfont"> </div>
<div class="t_msgfont">查看用户</div>
<div class="t_msgfont">lsof -i :21</div>
<div class="t_msgfont">ps aux | grep vsftpd</div>
<p dir="ltr"> </p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dusike.com/%e5%a6%82%e6%9e%9c%e5%8f%aa%e6%98%af%e5%86%85%e9%83%a8%e4%bd%bf%e7%94%a8%ef%bc%8c%e6%88%91%e8%bf%98%e6%98%af%e5%96%9c%e6%ac%a2vsftpd%e5%b0%8f%e8%80%8c%e7%ae%80%e5%8d%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PROFTPD上传慢的解决办法</title>
		<link>http://www.dusike.com/proftpd%e4%b8%8a%e4%bc%a0%e6%85%a2%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</link>
		<comments>http://www.dusike.com/proftpd%e4%b8%8a%e4%bc%a0%e6%85%a2%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 12:21:55 +0000</pubDate>
		<dc:creator>LEO</dc:creator>
				<category><![CDATA[产品技术]]></category>
		<category><![CDATA[proftpd]]></category>

		<guid isPermaLink="false">http://www.dusike.com/?p=1697</guid>
		<description><![CDATA[我们是通过局域网FTP进行图片上传的，发现速度极其慢，一个几十K的JPG需要2分之久，真是不可思议。后来，从网上找答案说是反DNS等有关，按下要求设置PROFTPD.CONF，速度提高了不少，原来大小图片，现在只需要6S。说实话，我还是觉得有点慢，还需要继续寻找快的解决办法。 proftpd.conf中增加两行设置： UseReverseDNS off IdentLookups off]]></description>
			<content:encoded><![CDATA[<p>我们是通过局域网FTP进行图片上传的，发现速度极其慢，一个几十K的JPG需要2分之久，真是不可思议。后来，从网上找答案说是反DNS等有关，按下要求设置PROFTPD.CONF，速度提高了不少，原来大小图片，现在只需要6S。说实话，我还是觉得有点慢，还需要继续寻找快的解决办法。</p>
<p style="padding-left: 30px;">proftpd.conf中增加两行设置：<br />
UseReverseDNS off<br />
IdentLookups off</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dusike.com/proftpd%e4%b8%8a%e4%bc%a0%e6%85%a2%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

