Configuring the TFTP server and Server for NFS under Linux

Source: Internet
Author: User

Note: The experimental platform is carried out under the REDHATB6

There are three prerequisites for a successful configuration:

(1): Through Linux that can ping under window

(2): Shutdown Linux Firewall execution command:/etc/init.d/iptables stop

(3): Make SELinux in tolerance mode execution instruction: Setenforce permissive

First, configure the TFTP server steps

(1): Mount disk, install Tptp-server package

mount/dev/cdrom/mnt/... ..... .... ... ..... ..... .... ..... ..... ........, ... and .... .....-........... .. Mount Disk File system

Cd/mnt/packages/..... ..... ..... ..... ..... ..... ...........-.....-.......... ...... Go to disk Directory

Find./-name tftp*
Find: The path must precede an expression: tftp-server-0.49-7.el6.i686.rpm
Usage: Find [-h] [-l] [-P] [-olevel] [-D help|tree|search|stat|rates|opt|exec] [path ...] [Expression]
[[email protected] packages]# rpm-ivh tftp-server-0.49-7.el6.i686.rpm ............... .................................................. Installing the Tpft-server Package
Warning:tftp-server-0.49-7.el6.i686.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey
error:failed dependencies: ..... ..... ..... ..... ..... ..... ..................... ........... Installation fails, you need to install the package beginning with xinetd first
XINETD is needed by tftp-server-0.49-7.el6.i686
[[email protected] packages]# rpm-ivh/mnt/packages/xinetd ..... ..... ....................... .... tab key Auto-completion
Error:open of/mnt/packages/xinetd failed: no file or directory
[e-mail protected] packages]# rpm-ivh/mnt/packages/xinetd-2.3.14-34.el6.i686.rpm ..... ..... ............................... Installing dependent files
Warning:/mnt/packages/xinetd-2.3.14-34.el6.i686.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey
Preparing ... ########################################### [100%]
1:XINETD ########################################### [100%]
[e-mail protected] packages]# rpm-ivh tftp-server-0.49-7.el6.i686.rpm ............. ................................................... Installing the Tpft-server Package
Warning:tftp-server-0.49-7.el6.i686.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokey
Preparing ... ########################################### [100%]
1:tftp-server ########################################### [100%] ............. ......... Installation Successful
[Email protected] packages]#

(2): Configure TFTP server: Execute command: VIM/ETC/XINETD.D/TFTP

[Email protected] packages]# vim/etc/xinetd.d/tftp

Service TFTP
{
Socket_type = Dgram
protocol = UDP
Wait = yes
user = root
Server =/USR/SBIN/IN.TFTPD
Server_args =-s/home ..... ..... ..... ....... .................... Set the access directory of the server to/home
Disable = no ... ..... .... ..... ..... ............................ Enable TFTP server
Per_source = 11
CPS = 100 2
Flags = IPV4
}

(3) Restart TFTP service/etc/init.d/xinetd restart

(4) test the TFTP settings for success: Method: Use the FTFP client test program to download files from the TFTP server under Linux


Two: Steps to configure Server for NFS:

1. Configure Server for NFS Vim/etc/exports (the file system is empty by default)

Add/tmp 192.168.1.* (Rw,sync,no_root_squash) in it

/tmp: Shared directory

*: Allow access to the host IP of the shared directory
(Rw,sync,no_root_squash): access rights


2. Start the NFS server
/etc/init.d/nfs restart

[Email protected] home]#/etc/init.d/nfs restart
Turn off the NFS daemon: [Failed]
Turn off NFS mountd: [Failed]
Turn off NFS quotas: [Failed]
Start NFS service: [OK]
Turn off NFS quotas: [OK]
Start NFS mountd: [OK]
Starting RPC IDMAPD: [OK]
Starting RPC IDMAPD: [OK]
Start the NFS daemon: [OK]
[Email protected] home]#



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.