Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install vsftpd+dhcp+nfs+tftp for Centos6.5

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to install vsftpd+dhcp+nfs+tftp in Centos6.5". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "how to install vsftpd+dhcp+nfs+tftp in Centos6.5" can help you solve the problem.

Steps

1 、 mount / dev/sr0 / media/

2. Install the required software

Install and configure the tftp service

Yum install tftp tftp-server vsftpd dhcp syslinux nfs-utilsvim / etc/xinetd.d/tftp service tftp {disable = no socket_type = dgram protocol = udp wait = yes user = root server = / usr/sbin/in.tftpd server_args =-s / var/lib/tftpboot per_source = 11 cps = 100 2 flags = ipv4}

Configure dhcp

# dhcpd.conf # # sample configuration file for isc dhcpd # allow booting; allow bootp; # a slightly different configuration for an internal subnet. Subnet 192.168.1.0 netmask 255.255.255.0 {range 192.168.1.50 192.168.1.60; option domain-name-servers kangchangwei; option domain-name "kangchangwei"; option routers 192.168.1.1; default-lease-time 600; max-lease-time 7200; filename "pxelinux.0"; next-server 192.168.1.101;}

The above ip can be modified according to your network.

3. Copy the required startup files

Cp / usr/share/syslinux/pxelinux.0 / var/lib/tftpboot cp / mnt/images/pxeboot/initrd.img / var/lib/tftpboot cp / media/images/pxeboot/initrd.img / var/lib/tftpboot/ cp / media/images/pxeboot/vmlinuz / var/lib/tftpboot/mkdir / var/lib/tftpboot/pxelinux.cfg cp / media/isolinux/isolinux.cfg / var/lib/tftpboot/pxelinux.cfg/default

Editing

Vim / var/lib/tftpboot/pxelinux.cfg/default

Default linux#default vesamenu.c32prompt 1timeout display boot.msg menu background splash.jpgmenu title welcome to centos 6.5 menu color border "ffffffff # 00000000menu color sel 7 # ffffffff # ff000000menu color title" ffffffff # 00000000menu color tabmsg "ffffffff # 00000000menu color unsel" ffffffff # 00000000menu color hotsel "ff000000 # ffffffffmenu color hotkey 7 # ffffffff # ff000000menu color scrollbar ffffffff # 00000000 label linux menu label ^ install or upgrade an existing system menu default kernel vmlinuz append initrd=initrd.img ks= vesamenu Label install system with ^ basic video driver kernel vmlinuz append initrd=initrd.img xdriver=vesa nomodesetlabel rescue menu label ^ rescue installed system kernel vmlinuz append initrd=initrd.img rescuelabel local menu label boot from ^ local drive localboot 0xfffflabel memtest86 menu label ^ memory test kernel memtest append-

4. Shared CD

Vim / etc/export/media * (ro,sync)

Start the nfs service

[root@kcw ~] # / etc/init.d/rpcbind restart stop rpcbind: [OK] starting rpcbind: [OK] [root@kcw ~] # / etc/init.d/nfs restart close the nfs daemon: [OK] close nfs mountd: [OK] close nfs Service: [OK] shutting down rpc idmapd: [OK] start nfs Service: [OK] start nfs mountd: [OK] start nfs daemon: [OK] starting rpc idmapd: [OK]

View nfs output

[root@kcw] # showmount-e localhostexport list for localhost:/media *

Generate ks.cfg file installation tool

[root@kcw ~] # yum install system-config-kickstart

Then run

System-config-kickstart

To modify the page to get your own installed client

I'll omit it here.

Here's a good ks.cfg.

The contents are as follows:

# platform=x86, amd64 Or intel em64t#version=develkey-skip# firewall configurationfirewall-disabled# install os instead of upgradeinstall# use network installationnfs-server=192.168.1.101-dir=/media# root passwordrootpw-iscrypted $1 $9elloihk$po.nfjnd/6k88z3ciivpc.# network informationnetwork-bootproto=dhcp-device=eth0-onboot=on# system authorization informationauth-useshadow-passalgo=md5# use text mode installtext# system keyboardkeyboard us# system languagelang zh_cn# selinux configurationselinux-disabled# do not configure the x window systemskipx# installation logging levellogging-level=info# reboot after installationreboot# system timezonetimezone asia/shanghai# system Bootloader configurationbootloader-location=mbr# clear the master boot recordzerombr# partition clearing informationclearpart-- all # disk partitioning informationpart swap-- size 2048 part / boot-- size 30000 part pv.01-- size 30000 volgroup vol0 pv.01logvol /-- vgname=vol0-- size=25000-- name=root#logvol / home-- vgname=vol0-- size=500-- name=home% post#wget ftp://192.168.1.101/pub/yum.repo-p / etc/yum.repos.d/%packages@ desktop@ console internet tools@ desktop platform@ development tools@ general purpose Desktop@ graphical administration tools@ internet browser@ network file system client@ printing client@ x window system@ chinese support

Notice that my root password is redhat.

When I partition here, lvm partition can also be modified according to your needs.

Then put ks.cfg in a directory that your vsftpd can access by default.

That is:

[root@kcw ~] # cd / var/ftp/pub/ [root@kcw pub] # lsks.cfg [root@kcw pub] # pwd/var/ftp/pub

Be sure to test whether your file can access and open ie first.

Input

See if you can see the content!

Restart dhcp vsftpd xine xinetd nfs after completion

Then reboot the computer to boot from the network card to see if it can boot successfully and install automatically.

My block waits for 600 seconds to install automatically by default.

Press enter to install when booting to boot:

This is the end of the introduction to "how Centos6.5 installs vsftpd+dhcp+nfs+tftp". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report