安裝 pure-ftpd
作業環境:
- FreeBSD 6.2-STABLE
- pure-ftpd 1.0.21
1.編輯 Makefile
增加 --with-language=traditional-chinese
{% codeblock lang:bash%}
CONFIGURE_ARGS=--with-everything
--with-paranoidmsg
--with-virtualchroot
--with-tls
--with-largefile
--with-language=traditional-chinese
--sysconfdir=${PREFIX}/etc
{% endcodeblock %}
2.安裝 pure-ftpd
{% codeblock lang:bash%} [root@sun ~]#cd /usr/ports/ftp/pure-ftpd [root@sun pure-ftpd]#make install clean {% endcodeblock %}
3.Options for pure-ftpd 1.0.21_1
{% codeblock lang:bash%}
[X] MYSQL Support for users in MySQL database
[X] PAM Support for PAM authentication
[X] THROTTLING Bandwidth throttling
[X] BANNER Show pure-ftpd welcome upon session start
[X] SENDFILE Support for the sendfile syscall
{% endcodeblock %}
4.修改設定檔
{% codeblock lang:bash%} [root@sun ~]#cd /usr/local/etc/ [root@sun etc]#cp pure-ftpd.conf.sample pure-ftpd.conf [root@sun etc]#joe pure-ftpd.conf {% endcodeblock %}