1, yum install -y system-config-kickstart
< p>Install and generate an answer file for automatically installing the operating system
2, system-config-kickstart Execute a graphical tool for generating answer files
3. Automated installation is based on network installation, and the HTTP server is configured in advance
4. Install boot loader
5. Clear MBR , Delete all partitions, initialize tags, create partitions
< /p>
6. Add a network card: eth0, set up a DHCP server in advance
7. Disable firewall and selinux
8. Choose the package you need to install
9. Add a post-installation script, enter the configuration you need, etc.
10. Save after setting
11. Choose the path you saved and set the file name
12, vim /root/ks.cfg
At the end of the answer file, add the package you want to install
13. Put the answer file on the http server
yum install httpd -y Install http
mkdir / var/www/html/ksdir
mv /root/ks.cfg /var/www/html/ksdir
systemctl start httpd
Put the answer file Go to the http server built by yourself
14. The boot process still requires CD-ROM boot; to the CD-ROM interface, press the ESC key< /p>
< p>
15. Specify the http service where the price is answered The path of the server; the premise is to connect to the http server must have an ip address, and the dhcp server must be set up in advance to get the ip address