파일의 업로드, 다운로드를 가능하게 해주는 서비스.
ftp 서버포트는 21번을 사용하며 서버와 클라이언트가 통신한다.
vsftpd 설치
rpm -qa | grep vsftpd : 설치되어있는지 확인
yum install vsftpd : yum명령어로 다운로드및 설치.
rpm -qa | grep vsftpd : 설치가 잘되어있는지 확인한다.
vsftpd 구동하기
/etc/init.d/vsftpd start : 서비스 시작
/etc/init.d/vsftpd stop : 서비스 중지
예
root@hosting01:~# rpm -qa | grep vsftp #설치 되어 있는지 확인
vsftpd-2.0.5-21.el5 # 기존에 설치 되어있음
root@hosting01:~# rpm -e vsftpd # rpm명령어로 기존 데몬 삭제
warning: /etc/vsftpd/vsftpd.conf saved as /etc/vsftpd/vsftpd.conf.rpmsave
root@hosting01:~# rpm -qa | grep vsftpd # 삭제가 잘되었는지 확인
root@hosting01:~# yum install vsftpd #yum을 이용하여 설치
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* extras: ftp.daum.net
* updates: ftp.daum.net
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.0.5-24.el5_8.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
vsftpd x86_64 2.0.5-24.el5_8.1 updates 142 k
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 142 k
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.0.5-24.el5_8.1.x86_64.rpm | 142 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vsftpd 1/1
Installed:
vsftpd.x86_64 0:2.0.5-24.el5_8.1
Complete!
root@hosting01:~# rpm -qa | grep vsftpd # 설치완료후 확인
vsftpd-2.0.5-24.el5_8.1
root@hosting01:~# /etc/init.d/vsftpd start # 서비스 구동 시작 명령어
Starting vsftpd for vsftpd: [ OK ]
root@hosting01:/home/hky# netstat -tnlp #vsftp가 구동중인 포트 확인
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 21055/vsftpd