linux 安装pureftp

本文档详细介绍了在Linux系统中安装PureFTP的步骤,包括关闭防火墙、安装依赖、下载并编译源码、配置选项、编译安装、创建配置文件目录以及修改配置文件等关键操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

FTP 搭建

第一步  关闭防火墙 :service iptables stop

第二步 安装所需依赖和编译工具: yum install -y gcc openssl-devel perl

第三步 下载pureftp: wget  https://download.pureftpd.org/pure-ftpd/releases/obsolete/pure-ftpd-1.0.41.tar.gz 

第四步  解压:tar -xvjf pure-ftpd-1.0.41.tar.gz  ,进入[root@localhost ~]# cd pure-ftp-1.0.41

第五步 进行配置:[root@localhost pure-ftpd-1.0.41]#  ./configure --prefix=/usr/local/pureftpd --without-inetd --with-altlog --with-puredb --with-throttling --with-tls

第六步 编译和安装:[root@localhost pure-ftpd-1.0.41]#  make && make  install

第七步 修改配置文件:

创建目录:[root@localhost pure-ftpd-1.0.41]#  mkdir /usr/local/pureftpd/etc

                  [root@localhost pure-ftpd-1.0.41]# ls
aclocal.m4   config.log          contrib  INSTALL       Makefile.in  pureftpd-ldap.conf   README.Authentication-Modules  README.MySQL          stamp-h1
AUTHORS      config.status       COPYING  install-sh    man          pureftpd-mysql.conf  README.Configuration-File      README.PGSQL          THANKS
ChangeLog    configuration-file  depcomp  m4            missing      pureftpd-pgsql.conf  README.Contrib                 README.TLS
compile      configure           FAQ      Makefile      NEWS         pure-ftpd.png        README.Donations               README.Virtual-Users
config.h     configure.ac        gui      Makefile.am   pam          pureftpd.schema      README.LDAP                    README.Windows
config.h.in  CONTACT             HISTORY  Makefile.gui  puredb       README               README.MacOS-X                 src
                        [root@localhost pure-ftpd-1.0.41]# cd ./configuration-file/
                        [root@localhost configuration-file]# ls
Makefile  Makefile.am  Makefile.in  pure-config.pl  pure-config.pl.in  pure-config.py  pure-config.py.in  pure-ftpd.conf  pure-ftpd.conf.in

                       [root@localhost configuration-file]# cp pure-ftpd.conf  /usr/local/pure-ftpd/etc/


再截个图吧

[root@localhost ~]#  wget  https://download.pureftpd.org/pure-ftpd/releases/obsolete/pure-ftpd-1.0.41.tar.gz
--2018-05-11 00:26:22--  https://download.pureftpd.org/pure-ftpd/releases/obsolete/pure-ftpd-1.0.41.tar.gz
正在解析主机 download.pureftpd.org... 37.59.238.213
正在连接 download.pureftpd.org|37.59.238.213|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:594637 (581K) [text/plain]
正在保存至: “pure-ftpd-1.0.41.tar.gz”

24% [==============================>                                                                                                ] 146,715     25.2K/s eta(英国中部时27% [=================================>                                                                                             ] 163,099     19.7K/s eta(英国中部时30% [=====================================>                                                                                         ] 179,483     18.6K/s eta(英国中部时32% [========================================>                                                                                      ] 195,867     15.5K/s eta(英国中部时35% [============================================>                                                                                  ] 212,251     15.5K/s eta(英国中部时38% [===============================================>                                                                               ] 228,635     15.8K/s eta(英国中部时41% [===================================================>                                                                           ] 245,019     15.7K/s eta(英国中部时43% [======================================================>                                                                        ] 261,403     14.4K/s eta(英国中部时46% [==========================================================>                                                                    ] 277,787     14.2K/s eta(英国中部时49% [=============================================================>                                                                 ] 294,171     13.0K/s eta(英国中部时52% [=================================================================>                                                             ] 310,555     12.7K/s eta(英国中部时54% [====================================================================>                                                          ] 326,939     12.9K/s eta(英国中部时57% [========================================================================>                                                      ] 343,323     13.1K/s eta(英国中部时60% [===========================================================================>                                                   ] 359,707     13.4K/s eta(英国中部时63% [===============================================================================>                                               ] 376,091     13.8K/s eta(英国中部时66% [==================================================================================>                                            ] 392,475     13.9K/s eta(英国中部时68% [======================================================================================>                                        ] 408,859     13.9K/s eta(英国中部时71% [=========================================================================================>                                     ] 425,243     11.7K/s eta(英国中部时74% [=============================================================================================>                                 ] 441,627     10.9K/s eta(英国中部时77% [================================================================================================>                              ] 458,011     8.86K/s eta(英国中部时79% [====================================================================================================>                          ] 474,395     8.77K/s eta(英国中部时82% [=======================================================================================================>                       ] 490,779     9.11K/s eta(英国中部时85% [===========================================================================================================>                   ] 507,163     9.29K/s eta(英国中部时88% [==============================================================================================================>                ] 523,547     9.81K/s eta(英国中部时90% [==================================================================================================================>            ] 539,931     10.0K/s eta(英国中部时93% [=====================================================================================================================>         ] 556,315     9.74K/s eta(英国中部时96% [=========================================================================================================================>     ] 572,699     9.64K/s eta(英国中部时99% [============================================================================================================================>  ] 589,083     8.36K/s eta(英国中部时100%[==============================================================================================================================>] 594,637     7.92K/s eta(英国中部时100%[==============================================================================================================================>] 594,637     7.92K/s   in 58s

2018-05-11 00:27:22 (9.97 KB/s) - 已保存 “pure-ftpd-1.0.41.tar.gz” [594637/594637])


[root@localhost ~]# cd pure-ftp-1.0.41
-bash: cd: pure-ftp-1.0.41: 没有那个文件或目录
[root@localhost ~]# cd pure-ftpd-1.0.41
[root@localhost pure-ftpd-1.0.41]# l^C
[root@localhost pure-ftpd-1.0.41]#  ./configure --prefix=/usr/local/pureftpd --withou                                                                                    t-inetd --with-altlog --with-puredb --with-throttling --with-tls
configure: error: unrecognized option: `--withou'
Try `./configure --help' for more information
[root@localhost pure-ftpd-1.0.41]# ^C
[root@localhost pure-ftpd-1.0.41]#  ./configure --prefix=/usr/local/pureftpd --without-inetd --with-altlog --with-puredb --with-throttling --with-tls
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking whether C compiler accepts -fPIC... yes
checking whether the linker accepts -fPIC... yes
checking whether C compiler accepts -fPIE... yes
checking whether the linker accepts -fPIE... yes
checking whether the linker accepts -pie... yes
checking whether C compiler accepts -fwrapv... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -fno-strict-overflow... yes
checking whether C compiler accepts -fstack-protector-all... yes
checking whether the linker accepts -fstack-protector-all... yes
checking whether C compiler accepts -Winit-self... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -Wdiv-by-zero... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts  -Wall -Wextra... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit... yes
checking whether C compiler accepts  -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wflo
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值