LinuxEnvironmentPureFTPdThe installation configuration is as follows:
1. Download the pure-ftpd source code package and decompress it.
2. Compile, install, and prepare
Go to the decompressed source code directory.
# Configuring compilation parameters and laziness -- everything
./Configure -- with-everything -- with-language = simplified-chinese
# Compilation and Installation
Make
Make install
# Configuration Tool
Chmod 755 configuration-file/pure-config.pl
Cp config-file/pure-config.pl/usr/local/sbin/
Cp configuration-file/pure-ftpd.conf/etc/
# Configure the Automatic startup script, using the official compilation sample, which is indeed relatively general
Vi/etc/rc. d/init. d/pure-ftpd
#! /Bin/bash
#
# Script for the pure-ftpd FTP Server $ Revision: 1.3 $
#
# Chkconfig: 2345 85 15
# Description: Pure-FTPd is an FTP server daemon based upon Troll-FTPd
# Processname: pure-ftpd
# Pidfile:/var/run/pure-ftpd.pid
# Config:/etc/pure-ftpd.conf
# Source function library.
./Etc/rc. d/init. d/functions
RETVAL = 0
# Path to the pure-ftp binaries.
Prog = pure-config.pl
Fullpath =/usr/local/sbin/$ prog
Pureftpwho =/usr/local/sbin/pure-ftpwho
Start (){
Echo-n $ "Starting $ prog :"
$ Fullpath/etc/pure-ftpd.conf -- daemonize
RETVAL =$?
[$ RETVAL = 0] & touch/var/lock/subsys/$ prog
Echo
}
Stop (){
Echo-n $ "Stopping $ prog :"
Kill $ (cat/var/run/pure-ftpd.pid)
RETVAL =$?
[$ RETVAL = 0] & rm-f/var/lock/subsys/$ prog
Echo
}
# See how we were called.
Case "$1" in
Start)
Start
;;
Stop)
Stop
;;
Restart)
Stop
Start
;;
Condrestart)
If [-f/var/lock/subsys/$ prog]; then
Stop
# Avoid race
Sleep 3
Start
Fi
;;
Status)
Status $ prog
RETVAL =$?
If [-f $ pureftpwho] & [$ RETVAL-eq 0]; then
$ Pureftpwho
Fi
;;
*)
Echo $ "Usage: $ prog {start | stop | restart | condrestart | status }"
RETVAL = 1
Esac
Exit $ RETVAL
Modify execution permission
Chmod a + x/etc/rc. d/init. d/pure-ftpd
Go to the setup tool and Configure Automatic startup.
We can see from the article that the installation and configuration of Pureftpd is quite simple. Hope to help you!
- Pureftpd command syntax
- Virtual user support for Pureftpd Configuration
- Pureftpd configuration for real users
- Anonymous user login for Pureftpd Configuration
- Pureftpd installation documentation
- PureFTPd configuration file