Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
paip
/
script
/
lpr
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//paip/script/lpr/SetupFTPserver.md
# Setup FTP server for Centos ## 1. install fpt server programs ### 1-1. install vsftp using yum ```shell $ sudo yum install -y vsftpd ``` ## 2. 파일 설정 ### 2-1. firewalld edit ```shell $ sudo vi /etc/firealld/zones/public.xml ``` ```xml <?xml version="1.0" encoding="utf-8"?> <zone> <short>Public</short> <description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description> <service name="ssh"/> <service name="dhcpv6-client"/> <service name="cockpit"/> <port port="21" protocol="tcp"/> <!--> 추가 <--> <port port="22" protocol="tcp"/> <!--> 추가 <--> ... ``` ### 2-2. ftp user 등록 ```shell $ sudo vi /etc/vsftpd/chroot_list # 이후에 ftp user 등록 $ sudo vi /etc/vsftpd/user_list # 사용할 유저 삭제 $ sudo vi /etc/vsftpd/ftpusers # 사용할 유저 삭제 ``` ## 3. Deamon Restart ### 3-1. firewalld restart ```shell $ sudo systemctl restart firewalld $ sydo systemctl status firewalld ``` ### 3-2. vsftpd start ```shell $ sudo systemctl start vsftpd ``` ## 4. lrp directory 생성 ```shell # gate user로 실행 $ mkdir -p /gate/data/lprImage/ # lrp directory 생성 $ ln -s /gate/data/lprImage /home/gate/lprImage # symbolic link 생성 ```