메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


CentOS centsOS vsftpd설치하기

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

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" 포트확인

번호 제목 날짜 조회 수
39 Ubuntu 16.04 LTS에서 sendmail설치및 설정(수신,발신 가능)및 메일서버 만들기 2017.05.23 7964
38 banana pi(lubuntu)에서 한글 설정및 한글깨짐 문제 해결 2014.07.06 5633
37 ping 안될때.. networking restart 날려주면 잘됨.. 2014.05.09 5216
36 [백업] 리눅스 시스템 백업하기 (Linux System Backup) - TAR 사용 시스템 전체 백업 2022.01.19 5107
35 [dovecot]dovecot restart할때 root@gsda4:/usr/lib/dovecot# service dovecot restart 오류 발생시 조치사항 2017.06.12 4637
34 우분투 root 패스워드 설정하기 2013.03.04 4473
33 우분투에서 패키지 설치시 E: Sub-process /usr/bin/dpkg returned an error code 발생시 조치 2017.05.02 4448
32 [kubernetes]우분투 Kubernetes 설치 방법 file 2019.07.24 4416
31 VirtualBox에 ubuntu 설치 하기 (12.10) file 2013.03.04 4402
» centsOS vsftpd설치하기 2013.12.17 4348
29 os가 windows7인 host pc에서 ubuntu가 os인 guest pc에 접근하기 위한 네트워크설정 2014.04.20 4336
28 apk 파일 위치 file 2015.05.25 4320
27 [shellscript]엑셀파일에서 여러줄에 존재하는 단어를 한줄의 문자열로 합치는 방법(comma로 구분) 2019.07.15 4263
26 The disk drive for uuid= is not ready yet or not present 오류 해결방법 2014.04.21 4105
25 [우분투] suppoie 채굴 프로세스 발생시 자동으로 삭제하는 shell프로그램 2018.04.01 4071
24 [shellscript] 함수에 배열을 인자로 주어서 처리하는 방법 2019.07.16 3984
23 sendmail전송시 421 4.3.0 collect: Cannot write ./dfv5BA2EBS010579 (bfcommit, uid=0, gid=114): No such file or directory 발생시 조치사항 2017.06.11 3976
22 [shell script] 파일을 한줄씩 읽어서 파일내용으로 명령문 만들고 실행하는 shell script예제 2017.02.21 3859
21 bash는 PS1 변수를 통해 프롬프트의 모양을 바꿀 수 있다. 2016.03.30 3825
20 Ubuntu에서 sbt및 scala설치하기 2017.06.20 3758
위로