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 | Optimizing NFS Performance | 관리자 | 2016.05.23 | 36 |
18 | tcp-wrapper on proftpd (using mod_wrap2, mod_wrap2_file) | 관리자 | 2016.04.19 | 36 |
17 | /etc/sysconfig/iptables 에 포트 리다이렉션 추가해 주기 | 관리자 | 2016.03.25 | 35 |
16 | 그누보드 짧은 주소 작성 (httpd,apache) | 관리자 | 2016.02.03 | 35 |
15 | 안드로이드 스튜디오 단축키 (공식) | 관리자 | 2016.02.12 | 32 |
14 | keepalive + LVS on centos7 | 관리자 | 2016.03.31 | 31 |
13 | Experiment: WordCamp Incubator | 관리자 | 2016.02.19 | 31 |
12 | WordPress 4.5 RC2 | 관리자 | 2016.04.11 | 29 |
11 | Contributor Weekend: Global WordPress Translation Day | 관리자 | 2016.04.08 | 28 |
10 | can’t start httpd(apache-2.4) with ssl module | 관리자 | 2015.12.31 | 28 |
9 | mysql-5.7 Client Error Codes and Messages | 관리자 | 2016.04.06 | 27 |
8 | install pptpd on linux (centos) | 관리자 | 2016.02.26 | 27 |
7 | jetpack 4.0 fatal error | 관리자 | 2016.04.22 | 25 |
6 | firewalld 기반의 접근제어 사용하기 | 관리자 | 2016.03.15 | 24 |
5 | 알아두면 유용한 안드로이드 스튜디오의 단축키 | 관리자 | 2016.02.12 | 24 |