apache ftpserver-CentOS config

<server xmlns="http://mina.apache.org/ftpserver/spring/v1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
       http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd    
       "
    id="myServer" 
    max-logins="5"  
    anon-enabled="false"  
    max-anon-logins="0"  
    max-login-failures="3"  
    login-failure-delay="30000">
    <listeners>
        <nio-listener name="default" port="21">
            <ssl>
                        <keystore file="./res/ftpserver.jks" password="password" />
            </ssl>
            <data-connection idle-timeout="60">
                <active local-port="1886" />
                <passive ports="1886" />
            </data-connection>
        </nio-listener>
    </listeners>
    <file-user-manager file="./res/conf/myusers.properties" encrypt-passwords="clear"/>
</server>

 

<server xmlns="http://mina.apache.org/ftpserver/spring/v1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
	   http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd	
	   "
	id="myServer">
	<listeners>
		<nio-listener name="default" port="21" local-address="114.112.169.61">
		    <ssl>
                <keystore file="./res/ftpserver.jks" password="password" />
            </ssl>
            <data-connection idle-timeout="60">
            	<active local-port="1886" />
            	<passive ports="1886" />
            </data-connection>
		</nio-listener>
	</listeners>
	<file-user-manager file="./res/conf/users.properties" encrypt-passwords = "clear" />
</server>

 

你可能感兴趣的:(apache)