Redhat 6버전에서 vsftp를 이용하여 FTP 서버를 구성해보자
1. 패키지 설치
- 설치가 되어있지 않다면 패키지를 설치하자
[root@rhel6-test ~]# yum -y install vsftpd
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-11.el6_4.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================
Installing:
vsftpd x86_64 2.2.2-11.el6_4.1 local 151 k
Transaction Summary
=================================================================================================================================================================================
Install 1 Package(s)
Total download size: 151 k
Installed size: 331 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vsftpd-2.2.2-11.el6_4.1.x86_64 1/1
Verifying : vsftpd-2.2.2-11.el6_4.1.x86_64 1/1
Installed:
vsftpd.x86_64 0:2.2.2-11.el6_4.1
Complete!
2. config 파일 수정
[root@rhel6-test ~]# cd /etc/vsftpd/
[root@rhel6-test vsftpd]# ls
ftpusers ftpusers.rpmsave user_list user_list.rpmsave vsftpd.conf vsftpd_conf_migrate.sh vsftpd.conf.rpmsave
--> ftpuser, user_list 에 root를 모두 # 주석처리하자
[root@rhel6-test vsftpd]# vi user_list#root
[root@rhel6-test vsftpd]# vi ftpuser
#root
--> vsftpd.conf 파일 설정
[root@rhel6-test vsftpd]# vi vsftpd.conf
userlist_enable=YES
3. 서비스 시작
[root@rhel6-test vsftpd]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
4. 리부팅시 반영되도록 설정 및 확인
[root@rhel6-test vsftpd]# chkconfig vsftpd on
[root@rhel6-test vsftpd]# chkconfig --list | grep vsftpd
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
'IT > LINUX' 카테고리의 다른 글
[LINUX] tar 및 압축 명령정리 (0) | 2016.12.22 |
---|---|
[LINUX][RHEL6] NTP slew option 설정하기 (0) | 2016.12.22 |
[LINUX][RHEL6] multipath 사용하기 (0) | 2016.12.19 |
[LINUX][RHEL7] NIC teaming 구성 방법 네트워크 이중화 (nmcli 사용) (0) | 2016.12.18 |
[LINUX][RHEL6] NIC Bonding(본딩) - 네트워크 이중화 (0) | 2016.12.18 |
댓글