Centos6.5怎么安装vsftpd+dhcp+nfs+tftp
发表于:2025-02-04 作者:千家信息网编辑
千家信息网最后更新 2025年02月04日,这篇文章主要介绍"Centos6.5怎么安装vsftpd+dhcp+nfs+tftp"的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇"Centos6.5怎么安装v
千家信息网最后更新 2025年02月04日Centos6.5怎么安装vsftpd+dhcp+nfs+tftp
这篇文章主要介绍"Centos6.5怎么安装vsftpd+dhcp+nfs+tftp"的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇"Centos6.5怎么安装vsftpd+dhcp+nfs+tftp"文章能帮助大家解决问题。
步骤
1、mount /dev/sr0 /media/
2、安装所需要的软件
安装并配置tftp服务
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 }
配置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; }
以上ip可以根据自己所在的网络修改
3、复制所需要的启动文件
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
编辑
vim /var/lib/tftpboot/pxelinux.cfg/default
default linux#default vesamenu.c32prompt 1timeout 600 display boot.msg menu background splash.jpgmenu title welcome to centos 6.5!menu color border 0 #ffffffff #00000000menu color sel 7 #ffffffff #ff000000menu color title 0 #ffffffff #00000000menu color tabmsg 0 #ffffffff #00000000menu color unsel 0 #ffffffff #00000000menu color hotsel 0 #ff000000 #ffffffffmenu color hotkey 7 #ffffffff #ff000000menu color scrollbar 0 #ffffffff #00000000 label linux menu label ^install or upgrade an existing system menu default kernel vmlinuz append initrd=initrd.img ks=ftp://192.168.1.101/pub/ks.cfglabel vesa menu 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、共享光盘
vim /etc/export/media *(ro,sync)
启动nfs服务
[root@kcw ~]# /etc/init.d/rpcbind restart停止 rpcbind: [确定]正在启动 rpcbind: [确定][root@kcw ~]# /etc/init.d/nfs restart关闭 nfs 守护进程: [确定]关闭 nfs mountd: [确定]关闭 nfs 服务: [确定]shutting down rpc idmapd: [确定]启动 nfs 服务: [确定]启动 nfs mountd: [确定]启动 nfs 守护进程: [确定]正在启动 rpc idmapd: [确定]
查看nfs输出
[root@kcw ~]# showmount -e localhostexport list for localhost:/media *
生成ks.cfg文件安装工具
[root@kcw ~]# yum install system-config-kickstart
然后运行
system-config-kickstart
来修改页面得到自己安装的客户端
我这里省略。。
这有个做好的ks.cfg
内容如下:
#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 200 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
注意我这块root密码是redhat
我这里分区时lvm分区根据你的需求也可以修改
然后把ks.cfg放到你的vsftpd默认可以访问的目录里
即:
[root@kcw ~]# cd /var/ftp/pub/[root@kcw pub]# lsks.cfg[root@kcw pub]# pwd/var/ftp/pub
注意先测试你的这个文件能不能访问打开ie
输入
看能否看到内容!
做完重启dhcp vsftpd xine xinetd nfs
然后重新开台电脑开机设置从网卡引导看能否启动成功并且自动安装
我这块等待默认600秒 自动安装
开机引导到boot:时按回车安装
关于"Centos6.5怎么安装vsftpd+dhcp+nfs+tftp"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注行业资讯频道,小编每天都会为大家更新不同的知识点。
服务
内容
文件
知识
正在
行业
进程
配置
不同
实用
成功
光盘
实用性
实际
客户
客户端
密码
工具
所在
文章
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
软件开发哪个城市好找工作吗
视频加速服务器下载
广州直播软件开发公司哪家好
郑州有软件开发公司吗
公司网络安全监控方案设计
虎丘区高品质服务器新报价
什么是地理空间数据库技术
怀旧服新开两组服务器
服务器机房为什么开空调
鄞州小型企业服务器
学习网络安全文件情况
怎么数据库系统运行安全
今天B站是不是服务器炸了
关于网络安全的刑事案件
西安互联网高科技产品
数据库dml操作和ddl
微信从服务器上恢复记录
服务器电源哪款好
信息技术考试系统网络技术应用
网吧主机怎么打开服务器
数据库主文件名在哪里
借阅范围类型数据库
网络安全从什么时候实施
视图可以取值别的数据库值吗
软件开发app大品牌
计算机网络技术所学的课程
3d打印笔软件开发
卡巴斯基迁移服务器
网络安全员和黑客谁厉害
疫情防控下的网络安全