วันศุกร์ที่ 6 กันยายน พ.ศ. 2556

ติดตั้ง tftp server บน CentOS 6

Standard

yum install -y tftp-server
ไฟล์ config ของ  tftp-server อยู่ที่
vi /etc/xinetd.d/tftp 
ตัวอย่างไฟล์ config
# 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
}
view raw tftp.conf hosted with ❤ by GitHub


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




Related Posts:

0 ความคิดเห็น:

แสดงความคิดเห็น