메뉴 건너뛰기

GREATUSER

tech

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

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



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 mysql server system variables log_warnings to log_error_verbosity 관리자 2016.10.05 1903
33 yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" 위대한유저 2015.01.30 1972
32 error messag : Fatal error: Call to undefined function session_register() 위대한유저 2015.07.08 2168
31 error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE in PHP (after update centos-7.4) 관리자 2017.11.15 2210
30 mysql error : No data – zero rows fetched, selected, or processed 관리자 2016.04.06 2318
29 XE 1.8.3 Release 위대한유저 2015.06.11 2446
28 IE 확대/축소 기능끄기 위대한유저 2014.07.01 2590
27 XE 1.8.2까지의 버전에서 슬라이드 사용안함 속성이 반영 안되는 문제 위대한유저 2015.05.21 2890
26 xfce4 on centos7(rhel7) 위대한유저 2015.01.28 3451
25 윈도우에서 ARP CACHE 삭제/초기화 하는 방법 위대한유저 2015.05.29 3467
24 넷북 환경에서 윈도우 8.1 업데이트 하기 위대한유저 2014.05.14 3972
23 net use 사용시 시스템 오류 58(이)가 생겼습니다. 위대한유저 2015.04.08 6852
22 [python] 현재 실행중인 함수 이름 구하기 (sys._getframe().f_code.co_name) 관리자 2018.03.28 7661
21 아파치(httpd) ServerTokens 설정 위대한유저 2014.03.16 9801
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 15456
위로