Configure the tftp service on redhatserver6.2

Source: Internet
Author: User

Configure the tftp service on redhatserver6.2

Install the tftp service (upload and download files)

I. Install the tftp Server

1. First, check whether the redhat system has the tftp service installed. You can use rpm-qa tftp * for query.

2. mount the CD: mount/dev/cdrom/mnt/cds;

3. go to the cds directory, go to the Packages directory, and run the ls tftp * command to check whether a tftp package exists. If the package exists, run the command rpm-ivh tftp-server *** (the queried server Installation Package ).

4. modify the configuration file and edit/etc/xinetd. d/tftp file, find the disable = yes line, and change yes to no. Note that the file contains the default directory for upload and download. Then run the Command service xinetd restart to restart the xinetd service, finally, disable the built-in firewall of Linux and run the command iptables-F.

5. window host has two main areas to be set. One is to close the window firewall and the other is to open the tftp service, open the tftp service directory under 'control panel/programs and functions/open or close window functions.

6. In the window system, type tftp 192.168.204.128 get download.txt. the download is successful. (Download.txt here is an existing file in the default download directory ).

7. in order to upload successfully, you need to modify xinetd. d In the tftp configuration file, set server_args =-s/var/lib/tftpboot, change to server_args =-s/var/lib/tftpboot-c (-c indicates the file created during upload. This file is the file name parameter after the tftp command) note that-c is in lower case. Then, change the File Permission of the tftpboot directory to 777. Finally, execute setenforce 0 to disable selinux firewall. At this time, you can use getenforce to view the status as Permissive. Finally, restart the network service and xinetd service (service network restart, service xinetd restart );

8. In the window system, type tftp 192.168.204.128 put upload.txt. the upload is successful.

Ii. Install the tftp client

1: the first three parts are the same as above. You do not need to modify the configuration file. On the redhat terminal, enter tftp 192.168.204.128 (local IP address ),

Get download.txt (download successful)

Put download.txt (uploaded successfully)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.