新网创想网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
系统版本:CentOS Linux release 7.4.1708 (Core)
创新互联是一家专注于网站制作、网站建设与策划设计,克山网站建设哪家好?创新互联做网站,专注于网站建设十余年,网设计领域的专业建站公司;建站业务涵盖:克山等地区。克山做网站价格咨询:18982081108关闭selinux,firewalld
[root@localhost ~]# axel -n 100 http://mirror.nsc.liu.se/centos-store/7.4.1708/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso
[root@localhost ~]# mount CentOS-7-x86_64-Minimal-1708.iso /media/
[root@localhost ~]# yum -y install vsftpd tftp tftp-server xinetd system-config-kickstart syslinux
[root@localhost ~]# vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot #修改
disable = no #修改
per_source = 11
cps = 100 2
flags = IPv4
}
[root@localhost ~]# cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf
[root@localhost ~]# > /etc/dhcp/dhcpd.conf
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf
subnet 172.168.1.0 netmask 255.255.255.0 {
range 172.168.1.100 172.168.1.199;
option domain-name-servers 172.168.1.1;
option domain-name "internal.example.org";
option routers 172.168.1.1;
option broadcast-address 172.168.1.255;
default-lease-time 600;
max-lease-time 7200;
next-server 172.168.1.200;
filename "pxelinux.0";
}
[root@localhost ~]# mkdir /tftpboot
[root@localhost ~]# mkdir /tftpboot/pxelinux.cfg
[root@localhost ~]# cp /usr/share/syslinux/pxelinux.0 /tftpboot/
[root@localhost ~]# cp /media/images/pxeboot/initrd.img /tftpboot/
[root@localhost ~]# cp /media/images/pxeboot/vmlinuz /tftpboot/
[root@localhost ~]# cp /media/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default
[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d
[root@localhost yum.repos.d]# vim server.repo
[centos7]
name=my-centos7
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0
[root@localhost ~]# cd /var/ftp/pub/
[root@localhost ~]# cp -r /media/* .
[root@localhost ~]# cp anaconda-ks.cfg /var/ftp/ks.cfg
[root@localhost ~]# egrep -v "^#|^$" /var/ftp/ks.cfg
[root@localhost ~]# systemctl enable vsftpd xinetd dhcpd
[root@localhost ~]# systemctl restart vsftpd xinetd dhcpd
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。