yum install -y tftp-serverไฟล์ config ของ tftp-server อยู่ที่
vi /etc/xinetd.d/tftpตัวอย่างไฟล์ config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
# default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s -c /var/myuploadfile -v -v disable = no per_source = 11 cps = 100 2 flags = IPv4 }
folder จะต้อง chmod 755 /var/myuploadfile
chown nobody /var/myuploadfile
สั่ง start service
service xinetd startเพิ่มให้ service auto start
chkconfig xinetd on
หมายเหตุถ้าพบปัญหา
Sep 6 21:53:27 localhost in.tftpd[4706]: sending NAK (0, Permission denied) to 192.168.10.62ให้ลอง
restorecon -Rv /var/myuploadfile
setenforce 0
chkconfig rsync on
0 ความคิดเห็น:
แสดงความคิดเห็น