Installation and configuration of PureFTPd in Linux (Part 1)

Source: Internet
Author: User

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

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.