這篇文章主要介紹“Centos6.5怎么安裝vsftpd+dhcp+nfs+tftp”的相關(guān)知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“Centos6.5怎么安裝vsftpd+dhcp+nfs+tftp”文章能幫助大家解決問題。
創(chuàng)新互聯(lián)公司長期為成百上千客戶提供的網(wǎng)站建設服務,團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務;打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為贛榆企業(yè)提供專業(yè)的成都做網(wǎng)站、成都網(wǎng)站設計、成都外貿(mào)網(wǎng)站建設,贛榆網(wǎng)站改版等技術(shù)服務。擁有10多年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。
步驟
1、mount /dev/sr0 /media/
2、安裝所需要的軟件
安裝并配置tftp服務
yum install tftp tftp-server vsftpd dhcp syslinux nfs-utils vim /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可以根據(jù)自己所在的網(wǎng)絡修改
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.c32 prompt 1 timeout 600 display boot.msg menu background splash.jpg menu title welcome to centos 6.5! menu color border 0 #ffffffff #00000000 menu color sel 7 #ffffffff #ff000000 menu color title 0 #ffffffff #00000000 menu color tabmsg 0 #ffffffff #00000000 menu color unsel 0 #ffffffff #00000000 menu color hotsel 0 #ff000000 #ffffffff menu color hotkey 7 #ffffffff #ff000000 menu 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.cfg label vesa menu label install system with ^basic video driver kernel vmlinuz append initrd=initrd.img xdriver=vesa nomodeset label rescue menu label ^rescue installed system kernel vmlinuz append initrd=initrd.img rescue label local menu label boot from ^local drive localboot 0xffff label 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 關(guān)閉 nfs 守護進程: [確定] 關(guān)閉 nfs mountd: [確定] 關(guān)閉 nfs 服務: [確定] shutting down rpc idmapd: [確定] 啟動 nfs 服務: [確定] 啟動 nfs mountd: [確定] 啟動 nfs 守護進程: [確定] 正在啟動 rpc idmapd: [確定]
查看nfs輸出
[root@kcw ~]# showmount -e localhost export list for localhost: /media *
生成ks.cfg文件安裝工具
[root@kcw ~]# yum install system-config-kickstart
然后運行
system-config-kickstart
來修改頁面得到自己安裝的客戶端
我這里省略。。
這有個做好的ks.cfg
內(nèi)容如下:
#platform=x86, amd64, or intel em64t #version=devel key --skip # firewall configuration firewall --disabled # install os instead of upgrade install # use network installation nfs --server=192.168.1.101 --dir=/media # root password rootpw --iscrypted $1$9elloihk$po.nfjnd/6k88z3ciivpc. # network information network --bootproto=dhcp --device=eth0 --onboot=on # system authorization information auth --useshadow --passalgo=md5 # use text mode install text # system keyboard keyboard us # system language lang zh_cn # selinux configuration selinux --disabled # do not configure the x window system skipx # installation logging level logging --level=info # reboot after installation reboot # system timezone timezone asia/shanghai # system bootloader configuration bootloader --location=mbr # clear the master boot record zerombr # partition clearing information clearpart --all # disk partitioning information part swap --size 2048 part /boot --size 200 part pv.01 --size 30000 volgroup vol0 pv.01 logvol / --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
我這里分區(qū)時lvm分區(qū)根據(jù)你的需求也可以修改
然后把ks.cfg放到你的vsftpd默認可以訪問的目錄里
即:
[root@kcw ~]# cd /var/ftp/pub/ [root@kcw pub]# ls ks.cfg [root@kcw pub]# pwd /var/ftp/pub
注意先測試你的這個文件能不能訪問打開ie
輸入
看能否看到內(nèi)容!
做完重啟dhcp vsftpd xine xinetd nfs
然后重新開臺電腦開機設置從網(wǎng)卡引導看能否啟動成功并且自動安裝
我這塊等待默認600秒 自動安裝
開機引導到boot:時按回車安裝
關(guān)于“Centos6.5怎么安裝vsftpd+dhcp+nfs+tftp”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識,可以關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,小編每天都會為大家更新不同的知識點。
文章題目:Centos6.5怎么安裝vsftpd+dhcp+nfs+tftp
分享URL:http://jinyejixie.com/article38/pgicpp.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化、品牌網(wǎng)站設計、網(wǎng)站維護、面包屑導航、搜索引擎優(yōu)化、電子商務
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)