메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


CentOS centsOS vsftpd설치하기

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

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

번호 제목 글쓴이 날짜 조회 수
19 [우분투] suppoie 채굴 프로세스 발생시 자동으로 삭제하는 shell프로그램 총관리자 2018.04.01 243
18 [Dovecot] -ERR [SYS/PERM] Permission denied 총관리자 2017.06.13 238
17 CentOS에서 리눅스(Linux) 포트 열기, 방화벽 설정/해제 등. 총관리자 2016.03.14 231
16 [shell script] 파일을 한줄씩 읽어서 파일내용으로 명령문 만들고 실행하는 shell script예제 총관리자 2017.02.21 224
15 우분투 서버에 GUI로 접속하기 file 총관리자 2018.05.27 212
14 [shell script]test.txt에 space로 분리된 내용을 일어들이는 예제 총관리자 2017.02.21 198
13 프로세스를 확인해서 프로세스를 삭제하는 shell script예제(cryptonight) 총관리자 2018.02.02 197
12 [shellscript] 함수에 배열을 인자로 주어서 처리하는 방법 총관리자 2019.07.16 194
11 sendmail + dovecot(pop3) + saslauthd 설치 총관리자 2017.06.11 193
10 센서테스트 file 총관리자 2015.05.25 167
9 HAX is not working and emulator runs in emulation mode 메세지가 나오는 경우 file 총관리자 2015.05.25 162
8 [CentOS] 네트워크 설정 총관리자 2018.03.26 154
7 Ubuntu에서 sbt및 scala설치하기 총관리자 2017.06.20 125
6 VPS에서는 root로 실행해도 swap파일을 만들지 못하게 만들어 두었지만 swap파일을 생성하는 방법 총관리자 2017.06.20 120
5 파일명 혹은 확장자 일괄 변경하는 방법 총관리자 2017.01.26 51
4 bash는 PS1 변수를 통해 프롬프트의 모양을 바꿀 수 있다. 총관리자 2016.03.30 38
3 tar를 이용한 리눅스 백업 총관리자 2018.05.13 35
2 파일은 남겨두고 파일 내용만 지우고자 할 때. 총관리자 2017.08.30 32
1 [vi]블럭 및 문서내 복사등에 관련된 명령어 총관리자 2017.02.17 30

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로