In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "deployment and testing of PXE service environment". In daily operation, I believe many people have doubts about the deployment and testing of PXE service environment. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "deployment and testing of PXE service environment"! Next, please follow the editor to study!
PXE server deployment environment, testing
PXE server
1. The supporting software needed by the PXE server: DHCP, TFTP, syslinux (providing pxe bootstrap file pxelinux.0), file sharing (nfs, ftp, http, samba) and so on.
2. Deployment of PXE server: DHCP TFTP syslinux vsftpd
Close selinux and firewalld
Deploy DHCP server 1. Check software: rpm-Q dhcp 2. Installation software: yum install-y dhcp 3. Check the configuration file: rpm-qc dhcp 4. Edit the dhcp.conf configuration file vim / etc/dhcp/dhcp.conf 5. Start the dhcp service, which allows you to start systemctl restart/enable/status dhcp restart automatically | self-boot | status systemctl-atunlp | grep: 67
3. PXE client test
1. Create a new virtual machine named pxe0
two。 The memory setting of the virtual machine needs to be set to at least 1300m.
3. Create a snapshot.
4. Start the virtual machine, get the IP address, but get stuck in a certain interface
4. Deploy tftp-server server
1. Check software: rpm-Q tftp-server
two。 Installation: yum install-y tftp-server
3. Check the configuration: rpm-qc tftp-server
/ etc/xinted.d/tftp
4. Edit tftp profile
Disable = yes in vim / etc/xinted.d/tftp change yes to no
5. Start the tftp service, allowing boot to start automatically.
6. Install the syslinux software that provides pxelinux.0 and share the pxe bootstrapper file
1.yum install-y syslinux mlocate
two。 Share the files you made to the / var/lib/tftpboot directory
DNS server
Forward and reverse parsing of dns server, auxiliary dns server
Forward resolution: domain name-"IP address"
Reverse resolution: IP address-"domain name"
Positive 1. Install software: bind, bind-utils
two。 Check the configuration file: / etc/named.conf
3. Modify DNS configuration file / etc/named.conf (backup first)
4. Configure forward resolution zone information: named.rfc1912.zones (backup first)
5. Do DNS internal test (local test) after restarting the service
Systemctl restart named
Nslookup & server & & server 192.168.11.11 & & Domain name (www.baidu.com)
DNS view:
/ etc/named.conf
Eg:
Acl dianxin {defines the access control list name as dianxin Telecom
192.168.10.0amp 24; specify the network address and subnet mask, 24 is the subnet mask of 255.255.255.0
}
View "dianxin" {defines the view name as dianxin Telecom
Match-clients {dianxin;}; the network segment of the matching client is dianxin (that is, the name defined by acl)
Recursion yes; enables recursive query
Zone "test.com" IN {Register test.com matching configuration
Type master; type is master primary DNS server
File "dianxin.test.com.zone"; parsing resource profile for the zone
}
}
# zone "." IN {
Type hint;file "named.ca"
#}
# include "/ etc/named.rfc1912.zones"
# include "/ etc/named.root.key"
# the following is the new content to be added
Acl dianxin {
192.168.10.0/24
}
View "dianxin" {
Match-clients {dianxin;}
Recursion yes
Zone "test.com" IN {
Type master
File "dianxin.test.com.zone"
}
Apache Overview:
Is a web website server software. Used to publish website information resources. Provide web services to users.
Work port: TCP 80
Service type: services managed by systemd
Software name: httpd
Package name:
Server package: httpd-2.4.6-45.el7.centos.x86_64.rpm
Development tool: httpd-devel-2.4.6-45.el7.centos.x86_64.rpm
Help manual: httpd-manual-2.4.6-45.el7.centos.noarch.rpm
Tool package: httpd-tools-2.4.6-45.el7.centos.x86_64.rpm (including ab, htpasswd commands)
Files and directories for apache
Working directory: / etc/httpd
Default home page directory: / var/www/html description: there is no index.html home page by default and needs to be created manually.
Configuration file directory: / etc/httpd/conf
Main configuration file: / etc/httpd/conf/httpd.conf
* additional configuration file directory: / etc/httpd/conf.d
Default welcome test page: / etc/httpd/conf.d/welcome.conf
Local help File Home Page: file:///usr/share/httpd/manual/index.html
How it works:
1. Connection process: through the input URL, the customer uses the HTTP protocol to establish a connection with the server through TCP covering his hand three times.
two。 Request process: request the home page resources of the website from the server, usually the default home page is index.html, index.php, index.jsp and other file names.
3. Reply process: the server transmits the home page file to the client browser. If the home page does not exist, it will show that the page does not exist
4. Close connection: in order to avoid taking up server resources all the time, the TCP connection will be closed automatically after data transfer.
Implementation ideas
1. Turn off the firewall and Selinux.
2. Install the software httpd on the apache server.
3. Set the httpd.conf configuration file and start the httpd service.
4. The client accesses the web server (apache).
5. Operation and maintenance management of apache: view the log files of the apache server.
At this point, the study on "deployment and testing of PXE services environment" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.