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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
139 | termination protection on instances and instance protection on auto scaling | 관리자 | 2016.05.31 | 30 |
138 | 그누보드 짧은 주소 작성 (httpd,apache) | 관리자 | 2016.02.03 | 33 |
137 | Appendix D: Java Programming Cheatsheet | 관리자 | 2016.04.14 | 33 |
136 | tcp-wrapper on proftpd (using mod_wrap2, mod_wrap2_file) | 관리자 | 2016.04.19 | 33 |
135 | 인터넷으로 서비스를 제공하기 위해 챙겨야 할 실용적인 보안 가이드 | 관리자 | 2016.05.24 | 33 |
134 | WordPress 4.6 Beta 3 | 관리자 | 2016.07.14 | 33 |
133 | /etc/sysconfig/iptables 에 포트 리다이렉션 추가해 주기 | 관리자 | 2016.03.25 | 34 |
132 | MySQL Fetch Cursor 문 사용방법 | 관리자 | 2016.04.06 | 34 |
131 | Optimizing NFS Performance | 관리자 | 2016.05.23 | 34 |
130 | WordPress 4.6 Beta 1 | 관리자 | 2016.06.30 | 36 |
129 | Recompiling VirtualBox kernel modules [FAILED] on centos7.2 or rhel7.2 | 관리자 | 2015.12.31 | 37 |
128 | log timestamp timezone in mysql-5.7 | 관리자 | 2016.05.12 | 37 |
127 | WordPress 4.5 “Coleman” | 관리자 | 2016.04.13 | 38 |
126 | WordPress 4.5.2 Security Release | 관리자 | 2016.05.07 | 39 |
125 | apache ab failed requests length | 관리자 | 2016.05.10 | 39 |