[Basic] preparations for batch deployment packages for LINUX servers under RHEL6: xinetd, tftp-server, dhcp, httpd, system-config-kickstart, syslinux, nfs test environment: Local Address: 192.168.46.98 local Gateway: 192.168.46.254 configure DHCP server: Sample: subnet 192.168.46.0 netmask 255.255.255.0 {range 192.168.46.100 192.168.46.105; option routers 192.168.46.254; default-lease-time 600; max-lease-time 7200; next-server 192.168.46.98;/* point to the tftp server */filename = "pxelinux.0";}/* relative path of the ftp root directory */reference file: ddns- Update-style interim;/* dhcp-supported dns dynamic update mode */ignore client-updates;/* ignore client DNS dynamic update */authoritative;/* Authorize */allow booting; /* supports PXE startup */allow bootp;/* supports boottp */subnet 192.168.129.0 netmask 255.255.255.0 {/* scope */range 192.168.129.30 192.168.129.78; /* IP address segment range */option routers 192.168.129.1;/* gateway */option subnet-mask 255.255.255.0;/* subnet mask */option domain-name-servers 203.103.24.68; /* DNS server address */default-lease- Time 21600;/* lease period, seconds */max-lease-time 43200;/* maximum lease period, seconds */next-server 192.168.129.22; /* TFTPServer IP */filename "/pxelinux.0";/* Bootstrap file */mount the system disk to/mnt configure the TFTP root directory (tftpboot) # cp/mnt/images/pxeboot/vmlinuz/mnt/images/pxeboot/initrd. img/var/lib/tftpboot # cp/mnt/isolinux/boot. msg/mnt/isolinux/splash.jpg/var/lib/tftpboot # cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/# mkdir/var/lib/tftpboot/ Pxelinux. cfg # cp-p/media/cdrom/isolinux. cfg/var/lib/tftpboot/pxelinux. cfg/defaultTFTP default configuration # vi/var/lib/tftpboot/pxelinux. cfg/defaultdefault linux # prompt 1 time out 600 display boot. msgmenu background splash.jpg menu title Welcome to Red Hat Enterprise Linux 6.4! Menu color border 0 # ffffffff #00000000 menu color sel 7 # ffffffff # ff000000menu color title 0 # ffffffff #00000000 menu color tabmsg 0 # ffffffff #00000000 menu color unsel 0 # ffffffff #00000000 menu color hotsel 0 # ff000000 # ffffffffmenu color hotkey 7 # ffffffff # ff000000menu color scrollbar 0 # ffffffff #00000000 label local localboot 0 label linux kernel vmlinuz append initrd = initrd. img devfs = nomount ks = http: // 192.168.46.98/ks. cfg NFS shared directory configuration # vi/etc/exports/mnt 192.168.46.0/255.255.255.0 (ro, sync) configure the Kickstart file ks. cfg # cd/var/www/html # vi ks. cfg # platform = x86, AMD64, or Intel EM64T # version = DEVEL # Firewall configurationfirewall -- enabled -- ssh # Install OS instead of upgradeinstall # Use NFS installation medianfs -- server = 192.168.46.98 -- dir =/mnt # Root password # rootpw -- iscrypted $1 $ kC9vxUwe $ l. login # System authorization informationauth -- useshadow -- passalgo = sha512 # Use text mode installtext # System authentication us # System authentication agelang en_US # SELinux configurationselinux -- disabled # Do not configure the X Window Systemskipx # Installation logging levellogging -- level = info # Reboot after installationreboot # System timezonetimezone -- isUtc Asia/Shanghai # Network informationnetwork -- bootproto = dhcp -- device = eth0 -- onboot = on # System bootloader configurationbootloader -- location = mbr # Clear the Master Boot Recordzerombr # Partition clearing informationclearpart -- all -- initlabel # Disk partitioning informationpart/boot -- asprimary -- fstype = "ext4" -- size = 128 part swap -- asprimary -- fstype =" swap "-- size = 2048 part/-- asprimary -- fstype =" ext4 "-- size = 8000 part/data -- asprimary -- fstype =" ext4 "-- size = 1% packages @ base @ chinese -support % end: enabling the service tftp is included in xinetd, therefore, open # vi/etc/xinetd in the configuration file. d/tftpservice tftp {socket_type = dgram protocol = udp wait = yes user = root server =/usr/sbin/in. tftpd server_args =-s/var/lib/tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4} enabled # service dhcpd start # service xinetd start # service httpd start # service nfs start