메뉴 건너뛰기

GREATUSER

tech

centos 기반에서 tftp 서비스 활성화하기

위대한유저 2014.03.21 22:58 조회 수 : 16543



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
}


수정해야 하는 부분은

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


하면 된다.. 

번호 제목 글쓴이 날짜 조회 수
34 How to download and install prebuilt OpenJDK packages in LINUX(redhat and ubuntu) 관리자 2018.04.24 1228
33 XE 1.8.3 Release 위대한유저 2015.06.11 1340
32 yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" 위대한유저 2015.01.30 1544
31 mysql server system variables log_warnings to log_error_verbosity 관리자 2016.10.05 1681
30 XE 1.8.2까지의 버전에서 슬라이드 사용안함 속성이 반영 안되는 문제 위대한유저 2015.05.21 1775
29 error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE in PHP (after update centos-7.4) 관리자 2017.11.15 1850
28 mysql error : No data – zero rows fetched, selected, or processed 관리자 2016.04.06 2064
27 IE 확대/축소 기능끄기 위대한유저 2014.07.01 2478
26 윈도우에서 ARP CACHE 삭제/초기화 하는 방법 위대한유저 2015.05.29 2711
25 xfce4 on centos7(rhel7) 위대한유저 2015.01.28 2874
24 넷북 환경에서 윈도우 8.1 업데이트 하기 위대한유저 2014.05.14 3542
23 net use 사용시 시스템 오류 58(이)가 생겼습니다. 위대한유저 2015.04.08 6091
22 [python] 현재 실행중인 함수 이름 구하기 (sys._getframe().f_code.co_name) 관리자 2018.03.28 7313
21 아파치(httpd) ServerTokens 설정 위대한유저 2014.03.16 8682
20 Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP 위대한유저 2014.01.01 14154
위로