资源介绍
mount /dev/hdc /mnt
cd /mnt/Server
rpm -ivh dhcp-3.0.5-18.el5.i386.rpm
cp /media/disk/dhcpd.conf /etc/dhcpd.conf
cd
cd /mnt/Server
rpm -ivh tftp-0.42-3.1.i386.rpm
rpm -ivh tftp-server-0.42-3.1.i386.rpm
cp /media/disk/tftp /etc/xinetd.d/tftp
chkconfig tftp on
service xinetd restart
cd
cd /mnt/Server
rpm -ivh vsftpd-2.0.5-12.el5.i386.rpm
pervice vsftpd start
mkdir /export
mkdir /export/ks
cp /media/disk/exports /etc/exports
service portmap start
service nfs start
cp /media/disk/5.3_32bit_Redhat_Enterprise_Linux.iso /export
cd /root
mv anaconda-ks.cfg /export/ks/ks.cfg
mkdir /tftpboot/RHEL5
cp /usr/lib/syslinux/pxelinux.0 /tftpboot/RHEL5/
mkdir /tftpboot/RHEL5/pxelinux.cfg
cp /mnt/isolinux/isolinux.cfg /tftpboot/RHEL5/pxelinux.cfg/default
cp /mnt/images/pxeboot/initrd.img /tftpboot/RHEL5/
cp /mnt/images/pxeboot/vmlinuz /tftpboot/RHEL5/
cp /mnt/isolinux/*.msg /tftpboot/RHEL5/
cp /mnt/isolinux/splash.lss /tftpboot/RHEL5
service xinetd restart
service vsftpd restart
service dhcpd restart
useradd ftpuser
passwd ftpuser
mkdir /home/ftpuser/i386
cp -R /mnt/* /home/ftpuser/i386/
chkconfig iptables off
chkconfig tftp on
service xinetd restart
service vsftpd start
service portmap start
service nfs start
service xinetd restart
service vsftpd restart
service dhcpd restart
- 上一篇: 企业级Linux服务攻略
- 下一篇: vsftpd-3.0.2-22.el7.x86_64.rpm