首页 >  帮助中心 > 景安Pure-ftpd 的详细安装

景安Pure-ftpd 的详细安装

来源:原创 点击量(51) 发布时间:2016-04-14

安装之前我们要安装一下Centos的开发工具以免在后面的编译时候提示各种错误



[root@localhost configuration-file]# yum -y groupinstall devlopment tools



下载您具体需要的版本:



http://download.pureftpd.org/pub/pure-ftpd/releases/



这边下载pure-ftpd-1.0.36.tar.gz已这个为例来安装:



解压



[root@localhost ~]# tar -zxvf pure-ftpd-1.0.36.tar.gz -C /tmp/



[root@localhost pure-ftpd-1.0.36]# ./configure --prefix=/usr/local/pureftpd/ --with-everyting --with-ftpwho



当你看到这个提示后就可以直接安装了



config.status: creating man/pure-quotacheck.8
config.status: creating man/pure-pw.8
config.status: creating man/pure-pwconvert.8
config.status: creating man/pure-authd.8
config.status: creating config.h
config.status: executing depfiles commands
configure: +--------------------------------------------------------+
configure: | You can subscribe to the Pure-FTPd users mailing-list  |
configure: | to ask for help and to stay informed of new releases.  |
configure: | Go to http://www.pureftpd.org/ml/ now!                 |
configure: +--------------------------------------------------------+



看到这个没有报错就可以安装了:



[root@localhost pure-ftpd-1.0.36]# make && make install



......



make[1]: Leaving directory `/tmp/pure-ftpd-1.0.36/configuration-file'



Making install in m4



make[1]: Entering directory `/tmp/pure-ftpd-1.0.36/m4'



make[2]: Entering directory `/tmp/pure-ftpd-1.0.36/m4'



make[2]: Nothing to be done for `install-exec-am'.



make[2]: Nothing to be done for `install-data-am'.



make[2]: Leaving directory `/tmp/pure-ftpd-1.0.36/m4'



make[1]: Leaving directory `/tmp/pure-ftpd-1.0.36/m4'



make[1]: Entering directory `/tmp/pure-ftpd-1.0.36'



make[2]: Entering directory `/tmp/pure-ftpd-1.0.36'



make[2]: Nothing to be done for `install-exec-am'.



make[2]: Nothing to be done for `install-data-am'.



make[2]: Leaving directory `/tmp/pure-ftpd-1.0.36'



make[1]: Leaving directory `/tmp/pure-ftpd-1.0.36'



安装后没有报错证明已经安装完成。



[root@localhost configuration-file]# mkdir -vp /usr/local/pureftpd/etc




[root@localhost configuration-file]# cp pure-ftpd.conf    /etc
[root@localhost configuration-file]# cp pure-config.pl    /usr/local/sbin/pure-config.pl
[root@localhost configuration-file]# chmod 755    /usr/local/sbin/pure-config.pl



开机启动PureFTPd
[root@localhost contrib]# cp redhat.init /etc/init.d/pure-ftpd
[root@localhost contrib]# chmod 755 /etc/init.d/pure-ftpd
[root@localhost contrib]# chkconfig --add pure-ftpd
[root@localhost contrib]# chkconfig --level 3 pure-ftpd on




创建ftp用户
[root@localhost network-scripts]# groupadd tianxias
[root@localhost network-scripts]# useradd -g tianxias -d /var/www -s /etc/nologin haha
[root@localhost network-scripts]# pure-pw useradd yao -u haha -d /var/www/yao
Password: 
Enter it again: 
[root@localhost network-scripts]# pure-pw mkdb
然后你的用户名yao 和密码就可以登陆了




然后可以把 /var/www/yao 的用户和组更改为haha:tianxias



  • 服务热线   18577765851