메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


CentOS centsOS vsftpd설치하기

총관리자 2013.12.17 23:56 조회 수 : 1602

1. vsftpd설치

#yum -y install vsftpd

 

2. vsftpd.conf파일설정

#vi /etc/vsftpd/vsftpd.conf

 

끝부분에 아래를 추가

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES
chroot_local_user=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

 

3 방화벽 설정

[root@f29fc740-c4d3-4f1f-adfb-975b1706c191 ~]# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j                             ACCEPT
[root@f29fc740-c4d3-4f1f-adfb-975b1706c191 ~]# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j                             ACCEPT

 

4. /etc/sysconfig/iptables에 파일이 생성
[root@f29fc740-c4d3-4f1f-adfb-975b1706c191 ~]# /etc/rc.d/init.d/iptables save
Saving firewall rules to /etc/sysconfig/iptables:          [  OK  ]

5. iptables확인

[root@f29fc740-c4d3-4f1f-adfb-975b1706c191 ~]# vi /etc/sysconfig/iptables

 

6. iptables start
[root@f29fc740-c4d3-4f1f-adfb-975b1706c191 ~]# service iptables start
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]

 

6-1. iptables restart(optional)

[root@f29fc740-c4d3-4f1f-adfb-975b1706c191 ~]# service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]

 

7. vsftpd 시작및 부팅시 자동실행 설정

#service vsftpd start

#chkconfig --level 2345 vsftpd on

 

6. 확인

#netstat -ntlp

에서 "vsftpd" "::21" 포트확인

번호 제목 날짜 조회 수
721 checking for termcap functions library... configure: error: No curses/termcap library found 2013.03.08 4189
720 다수의 로그 에이전트로 부터 로그를 받아 각각의 파일로 저장하는 방법(interceptor및 multiplexing) 2014.04.04 4158
719 Last transaction was partial에 따른 Unable to load database on disk오류 발생시 조치사항 2018.08.03 4099
718 Caused by: java.sql.SQLNonTransientConnectionException: Could not read resultset: unexpected end of stream, read 0 bytes from 4 오류시 확인/조치할 내용 2016.10.31 4064
717 Hadoop Cluster 설치 (Hadoop+Zookeeper+Hbase) file 2013.03.07 4063
716 원보드pc인 bananapi를 이용하여 hadoop 클러스터 구성하기(준비물) file 2014.05.29 3934
715 hadoop 2.6.0 기동(에코시스템 포함)및 wordcount 어플리케이션을 이용한 테스트 2015.05.05 3846
714 HBase 설치하기 – Fully-distributed 2013.03.12 3795
713 HBASE Client API : 기본 기능 정리 file 2013.04.01 3697
712 hadoop및 ecosystem에서 사용되는 명령문 정리 2014.05.28 3661
711 banana pi(lubuntu)에서 한글 설정및 한글깨짐 문제 해결 2014.07.06 3384
710 빅데이터 분석을 위한 샘플 빅데이터 파일 다운로드 사이트 2014.04.28 3332
709 Hbase Shell 명령 정리 2013.04.01 3301
708 "java.net.NoRouteToHostException: 호스트로 갈 루트가 없음" 오류시 확인및 조치할 사항 2016.04.01 3223
707 의사분산모드에 hadoop설치및 ecosystem 환경 정리 2014.05.29 3218
706 sqoop 1.4.4 설치및 테스트 2014.04.21 3207
705 의사분산모드에서 presto설치하기 2014.03.31 3126
704 Hive 사용법 및 쿼리 샘플코드 2013.03.07 3083
703 ping 안될때.. networking restart 날려주면 잘됨.. 2014.05.09 3072
702 hue.axes_accessattempt테이블의 username컬럼에 NULL 혹은 space가 들어갈수도 있음. 2021.11.03 3051
위로