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 | mysql 데이터베이스 용량 확인하기 | 위대한유저 | 2013.08.22 | 16277 |
138 | linux / proftpd 에서 대소문자 구분없는 환경 만들기 | 위대한유저 | 2013.12.14 | 18562 |
137 | Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP | 위대한유저 | 2014.01.01 | 14133 |
136 | 아파치(httpd) ServerTokens 설정 | 위대한유저 | 2014.03.16 | 8657 |
» | centos 기반에서 tftp 서비스 활성화하기 | 위대한유저 | 2014.03.21 | 16516 |
134 | 넷북 환경에서 윈도우 8.1 업데이트 하기 | 위대한유저 | 2014.05.14 | 3534 |
133 | IE 확대/축소 기능끄기 | 위대한유저 | 2014.07.01 | 2477 |
132 | hdparm 을 이용한 디스크 초기화 | 위대한유저 | 2014.11.14 | 1176 |
131 | atime, mtime, ctime 의 차이점 | 위대한유저 | 2014.11.27 | 1050 |
130 | IIS의 ASP페이지에서 데이터베이스 연결을 만드는 방법 | 위대한유저 | 2014.12.14 | 477 |
129 | 윈도우 원격데스크탑 포트변경하기 | 위대한유저 | 2015.01.10 | 407 |
128 | 리눅스 virtualbox에서 게스트os에 usb드라이브 마운트 안된다면... | 위대한유저 | 2015.01.20 | 472 |
127 | xfce4 on centos7(rhel7) | 위대한유저 | 2015.01.28 | 2871 |
126 | yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" | 위대한유저 | 2015.01.30 | 1542 |
125 | cacti-0.8.8c 버전에서의 주의점 | 위대한유저 | 2015.02.03 | 785 |