Linux环境PureFTPd安装配置(上篇)

系统 Linux
Pureftpd是一款在多种类Unix上使用并符合GPL协议的原代码开放的软件,顾名思义,它就是一款纯粹的Ftp程序。我带看看Linux环境PureFTPd安装配置过程。

Linux环境PureFTPd安装配置如下:

  1、下载pure-ftpd源码包,解压

  2、编译、安装、准备

  进入解压好的源码目录

  #配置编译参数,偷懒--everything

  ./configure --with-everything --with-language=simplified-chinese

  #编译、安装

  make

  make install

  #设置配置工具

  chmod 755 configuration-file/pure-config.pl

  cp configuration-file/pure-config.pl /usr/local/sbin/

  cp configuration-file/pure-ftpd.conf /etc/

  #配置自动启动脚本,采用官方编译样例,写得确实比较一般

  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

  修改执行权限

  chmod a+x /etc/rc.d/init.d/pure-ftpd

  进入setup工具,配置自动启动

通过文章我们看出Pureftpd安装配置挺简单的。希望对你们有帮助!

【编辑推荐】

 

 

责任编辑:赵鹏 来源: 网络转载
相关推荐

2011-03-02 08:57:51

2011-02-25 17:48:52

2011-02-25 17:19:09

Pureftpd安装

2011-03-02 10:19:29

FreebsdPureftpd

2011-02-24 15:51:23

Pureftpd安装

2011-03-02 09:47:51

PureftpCentos

2019-12-09 11:10:24

LinuxDjangoPython

2009-06-10 16:38:24

EclipsePydevDjango

2011-02-25 16:22:34

2021-01-12 09:55:29

LinuxCntlm代理

2020-09-25 17:10:13

LinuxMySQL 8.0

2012-11-28 10:37:25

Linux集群安装配置

2011-03-03 16:17:14

PureFTPd

2021-12-02 15:11:40

鸿蒙HarmonyOS应用

2010-01-12 16:21:57

Linux Yum安装

2011-03-03 09:34:34

PureFTPd

2010-04-29 10:11:07

Linux集群

2011-03-08 10:10:37

Linuxproftpd

2015-11-30 15:05:01

Linux浏览器Docker

2010-06-07 11:22:28

点赞
收藏

51CTO技术栈公众号