Configure the Installation server and prepare the ftp server

Source: Internet
Author: User
Configure and install the server and prepare the ftp server-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. log on to the server as root and run the command rpm? Qa | grep tftp check whether the tftp software package is installed. If not, install the software. (The method for installing the software will be detailed in the following article ).

2. Modify the tftp configuration file so that the tftp service can be started with linux (this service is not required when it is started ). Run the command vi/etc/xinetd. d/tftp to change disable = yes to disable = no in the file/etc/xinetd. d/tftp.

3. Prepare the kernel, PEX configuration file, and linux root file system. There are two steps: ① prepare the PEX configuration file-create directory/tftpboot/pxelinux. cfg, and then copy the ISO Linux Files in the 1st installation CD/isolinux directory. cfg and *. msg to the directory/tftpboot/pexlinux. cfg, put the file/tftpboot/pxelinux. cfg/isolinux. cfg is renamed to/tftpboot/isolinux. cfg/default; copy the file/usr/lib/syslinux/pxelinux.0 to the/tftpboot directory. ② Prepare the kernel and the root file system-Copy two vmlinuz (kernel) and initrd files in the 1st installation discs/images/pxeboot directory. img (root file system) to the/tftpboot directory.

/Tftpboot

Pxelinux.0 pxelinux. cfg vmlinuz initrd. img

Default (isolinux. cfg)

/Tftpboot directory

4. Configure the dhcp server. Run the command vi/etc/dhcpd. conf to modify the file/etc/dhcpd. conf, insert the following two lines into the file, and then save:

Filename "pxelinix.0"

Next-sever 192.168.100.100 // ip address of the current Installation server, that is, the IP address of the tftp Server

5. Start the dhcp and tftp services respectively. Run service dhcpd start to start the dhcp service, and run service xinetd restart to start the tftp service.

Prepare an ftp server

Use this Installation server as the ftp server. Configuring the ftp server on RedHat linux 9 is very simple: simply add a system account and enable the ftp service.

Localhost # useradd sery // Add User sery
Localhost # passwd sery // set the logon password for user sery
Localhost # start vsftpd start // start the ftp service

However, this is only an empty ftp server. To meet our installation task, we need to copy all the directories/files of the three installation discs to the specified ftp directory of the sery user. Create the directory mkdir/home/sery/linuxsetup with the root permission, and copy the files and directories from the three CDs of RedHat 9 to the directory home/sery/linuxsetup, after copying the second and third discs, you will be prompted to have the same folder or file in the directory. If you want to overwrite the file, you can answer yes. After the copy is complete, restart ftp and # service vsftpd restart.

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.