In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Initialization: iptables | firewalld,selinux,ntp | chrony
Environment: two hosts
A mainframe AVR DHCP Precinct TFT Preco HTTP Magi ksjinyum Source vmnet15,10.10.10.10
One host B: client pxe vmnet15
It is realized on A.
First, the functions that need to be implemented on http services.
1. Implement the http service, download the http service, and turn on the service, which is set to boot automatically. (centos7)
Yum install httpd systemctl start httpd systemctl enable httpd
two。 Configure the mount of startup files yum source files, and copy yum source files to the machine in advance
[root@centos7] # cd / var/www/html [root@centos7 html] # mkdir-pv centos/ {6jc7} / os/x86_64/ mount the copied CD files in different locations. Add the following two lines [root@centos7 html] # vim / etc/fstab/data/CentOS-7-x86_64-Everything-1810.iso / var/www/html/centos/7/os/x86_64/ iso9660 defaults 0 0/data/CentOS-6.10-x86_64-bin-DVD1.iso / var/www/html/centos/6/os/x86_64/ iso9660 defaults 00 to / etc/fstab to automatically mount [root@centos7 html] # mount-a
3. Answer file configuration, in the graphical interface configuration generation, must be able to open the graphics function (centos7) 6 and 7 files to be generated on different machines, 6 and 7 are slightly different.
[root@centos7 ~] # yum install system-config-kickstart [root@centos7 ~] # system-config-kickstart
The partition should be set by yourself, but it will not be detailed because of the picture.
Pay attention to this place below. The name of a yum must be changed to development in the local yum repository, otherwise the package selection in the following figure will not appear. You can choose what package you want, or you don't have to choose it, but centos6 must select a package, and you can delete it after generating the file. if you don't choose it, you will install all the packages.
Post-installation script, you can write an initialization script by yourself, and the picture is eaten.
The following is the save of the answer file
You can also modify the file after it is generated. Choose the specific circumstances.
[root@centos7] # cd / var/www/html [root@centos7 html] # mkdir ksdir
Copy the generated ks file into it
[root@centos7 html] # cd ksdir/ [root@centos7 ksdir] # tree. ├── ks6_desktop.cfg └── ks7_mini.cfg0 directories, 2 files
A ks file is posted here, and you can modify it as you wish. There is a difference between 6 and 7. You need to generate it yourself.
# platform=x86, AMD64 Or Intel EM64T#version=DEVEL# Install OS instead of upgradeinstall# Keyboard layoutskeyboard us'# Root passwordrootpw-- plaintext magedu# Use network installationurl-- url= "http://10.10.10.10/centos/7/os/x86_64"# System languagelang en_US# System authorization informationauth-- useshadow-- passalgo=sha512# Use text mode installtextfirstboot-- disable# SELinux configurationselinux-- disabled# Firewall configurationfirewall-- disabled# Network informationnetwork-- bootproto=dhcp-- device=eth0# Reboot after installationreboot# System timezonetimezone Africa/Abidjan# System bootloader configurationbootloader-- append=" net.ifnames=0 "--location=mbr# Clear the Master Boot Recordzerombr# Partition clearing informationclearpart-- all-- initlabel# Disk partitioning informationpart /-- fstype=" xfs "--size=10000part / boot-- fstype=" xfs "--size=1000part swap-- fstype=" swap "--size=1024%postuseradd wang echo 123456 | passwd-- stdin wang & > / dev/nullmkdir / etc/yum.repos.d/backupcd / etc/yum.repos.d/mv * .repo backup/cat > base.repo
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.