-
CentOS 7 FTP 구축하기 " 무작정 따라하기"소소한DB/리눅스 2019. 9. 3. 11:29반응형
■ CentOS 7 FTP 구축하기 " 무작정 따라하기" ■
간단하게 CentOS7 FTP 구축 하는방법을 설명 드리겠습니다.
FTP 종류를 찾아보시면 여러가지 있지만 오늘은 vsftpd : 속도 및 안정성이 전보다 뛰어남
FTP 서버 구축 작업 순서
1. 패키지 설치
2. 서버 설정
3.방화벽 설정
4.데몬 재시작
5. -끝-
▶ 설치 하기
1.패키지 설치
# ps -ax | grep vsftpd
28112 pts/0 R+ 0:00 grep --color=auto vsftpd
# yum list installed | grep vsftpd
-패키지 설치 유무 확인 ( 있으면 따로 설치를 안해도됩니다. )
# yum -y install vsftpd
-패키지 설치
2. 서버 설정
vsftpd.conf 파일 수정
# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf_bak -- 모든 파일 수정시 원복 백업
# vi /etc/vsftpd/vsftpd.conf
저는 간단하게 특정 사용자들만 접속 가능하도록 설정 했구요..
본인에 맞게 옵션 처리해서 구축하시면 됩니다.
#chroot_local_user=YES
chroot_local_user=YES -- 수정
#chroot_list_enable=YES
chroot_list_enable=YES --수정
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
chroot_list_file=/etc/vsftpd/chroot_list --수정
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES --수정
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=NO --- 수정
# vi /etc/vsftpd/chroot_list
ftpdooa 입력
#useradd ftpdooa --FTP계정 생성
옵션
3. 방화벽 설정
vi /etc/selinux/config
#SELINUX=enforcing
SELINUX=disabled
# firewall-cmd --permanent --add-service=ftp
success
# firewall-cmd --reload
success
재부팅 후 데몬 자동 시작으로 설정
# systemctl restart vsftpd
# systemctl enable vsftpd
5. 접속 확인
cmd -> ftp 192.168.153.130[IP]
반응형'소소한DB > 리눅스' 카테고리의 다른 글
xclock root에서만 보일경우 (0) 2023.03.09 리눅스 폴더 파일 개수 세기 (0) 2019.10.01 CentOS7 GUI 설치 하기 "무작정 따라하기" (0) 2019.09.03 리눅스 raid 5 구성방법 (0) 2019.01.21 리눅스 vncserver 세팅 (0) 2019.01.21 댓글