1. 패키지설치
yum install tftp-server
2. 설정
파일 : /etc/xinet.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
수정해야 하는 부분은
server_args 옵션에 "-c"를 추가 (이걸 해줘야 업로드가 가능해진다)
기본값인 -s 만 존재할 경우 다운로드는 되지만 업로드는 안된다.
3. 디렉토리설정
디렉토리에 쓰기권한이 필요함
server_args 옵션에 지정한 디렉토리에 쓰기권한을 준다..
chmod 777 /var/lib/tftpboot 등으로...
4. 테스트
- 접속
tftp tftp_server_ip
- 다운로드
tftp>get download_file_name.txt
- 업로드
tftp>put upload_file_name.txt
하면 된다..
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
19 | tcp-wrapper on proftpd (using mod_wrap2, mod_wrap2_file) | 관리자 | 2016.04.19 | 33 |
18 | Appendix D: Java Programming Cheatsheet | 관리자 | 2016.04.14 | 33 |
17 | 그누보드 짧은 주소 작성 (httpd,apache) | 관리자 | 2016.02.03 | 33 |
16 | termination protection on instances and instance protection on auto scaling | 관리자 | 2016.05.31 | 30 |
15 | keepalive + LVS on centos7 | 관리자 | 2016.03.31 | 30 |
14 | 안드로이드 스튜디오 단축키 (공식) | 관리자 | 2016.02.12 | 28 |
13 | can’t start httpd(apache-2.4) with ssl module | 관리자 | 2015.12.31 | 26 |
12 | Contributor Weekend: Global WordPress Translation Day | 관리자 | 2016.04.08 | 24 |
11 | mysql-5.7 Client Error Codes and Messages | 관리자 | 2016.04.06 | 23 |
10 | jetpack 4.0 fatal error | 관리자 | 2016.04.22 | 22 |
9 | install pptpd on linux (centos) | 관리자 | 2016.02.26 | 22 |
8 | WordPress 4.5 RC2 | 관리자 | 2016.04.11 | 21 |
7 | firewalld 기반의 접근제어 사용하기 | 관리자 | 2016.03.15 | 21 |
6 | Experiment: WordCamp Incubator | 관리자 | 2016.02.19 | 20 |
5 | 알아두면 유용한 안드로이드 스튜디오의 단축키 | 관리자 | 2016.02.12 | 20 |