沒想到要在EC2上安裝pure-ftpd是那麼多步驟的
感謝曾經幫助我的人 "Mars"
網路一些參考的文章
我也把安裝心得提供出來
yum list | grep -i mysql
yum provides *libmysqlclient.so.16*
yum install mysql51-libs-5.1.69-1.63.amzn1.x86_64
yum provides *libpq.so.
yum install postgresql9-libs-9.2.4-1.35.amzn1.x86_64
yum install usermode
先下載 RPM http://pkgs.org/centos-6-rhel-6/epel-x86_64/pure-ftpd-1.0.30-1.el6.x86_64.rpm/download/
rpm -ivh pure-ftpd-1.0.30-1.el6.x86_64.rpm
vi /etc/pure-ftpd/pure-ftpd.conf
需修改的如下(我只修改這些,看倌可以再自行調整)
# Disallow anonymous connections. Only allow authenticated users.
NoAnonymous yes
# PureDB user database (see README.Virtual-Users)
PureDB /etc/pure-ftpd/pureftpd.pdb
# If you want simple Unix (/etc/passwd) authentication, uncomment this
UnixAuthentication yes
# Automatically create home directories if they are missing
CreateHomeDir yes
# Port range for passive connections replies. - for firewalling.
PassivePortRange 30000 50000
==========================================================
useradd ftpuser
passwd ftpuser
==========================================================
id ftpuser
uid=502(ftpuser) gid=503(ftpuser) groups=503(ftpuser)
新增帳號imse
pure-pw useradd imse-u 503 -g 503 -d /home/imse -m
service pure-ftpd start
登入FTP測試吧
傳輸設定選被動模式
修改 imse 的密碼:
pure-pw passwd imse -m
Password:
Enter it again:
刪除 tina 帳號:
suselinux:~ # pure-pw userdel imse-m
這個指令可以用來查詢目前誰在線上
/usr/sbin/pure-ftpwho
沒有留言:
張貼留言
不管是支持還是抱怨,都歡迎讓我知道