In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to install centos7 in vmware14. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
In general, you can minimize the installation, if you need to install Oracle, WebLogic and so on, select "GNOME Desktop", otherwise it is very difficult to install.
How to connect to the Internet
The default Nic is not active.
Modify the file / etc/sysconfig/network-scripts/ifcfg-ens33 (where ens33 is random, but all start with en) and change ONBOOT=no to ONBOOT=yes.
# modify this item to access the Internet # ONBOOT=noONBOOT=yesDNS1=202.101.224.68DNS2=202.101.224.69# if you need to specify IP, you also need to modify or add the following configuration, and change the network of the virtual machine to bridge mode. # BOOTPROTO=dhcpBOOTPROTO=staticGATEWAY=192.168.0.1IPADDR=192.168.0.240NETMASK=255.255.255.0
Then run systemctl restart network to restart the network card and you can surf the Internet. You can use the ping command to check.
You can also use ip addr to view the configuration of the network card. The ifconfig command cannot be used at this time because the installation is minimized.
Install the yum source
Use the yum source of 163s. Http://mirrors.163.com/
There is no wget command for minimizing installation, use the curl command instead.
Mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup#wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repocurl-o / etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repoyum clean allyum makecache installs common software # downloads software Yum install wget# Editor yum install vim# Network tools Such as ifconfigyum install net-tools shuts down SELinux
Check to see if SELinux is enabled:
Getenforce
Turn off SELinux:
Open the SELinux configuration file
Vim / etc/selinux/config
Modify the following, and the configuration file will take effect the next time you restart
SELINUX=disabled
Temporarily shut down SELinux
Setenforce 0 enlarges file handle
Sets the number of files that can be opened simultaneously. If this value is too small, it will affect server performance, such as opening a database connection requires opening a file.
The Centos7 default value is 1024. Tencent Cloud CentOS7 server is set to 100001 by default.
Execution
Ulimit-a
Where open files (- n) 1024 is the maximum value of the file handle.
Execution
Vi / etc/security/limits.conf
Modify
*-nofile 100001
Or
@ users soft nofile 100001@users hard nofile 100002@root soft nofile 100001@root hard nofile 100002
Restart the system after modification to see if the modification takes effect.
Reduce the waiting time for the startup interface
When CentOS7 starts, a selection interface appears. The first option is normal startup, and the second option is safe mode startup. The default wait time is 5 seconds. It's a waste of time. It can be changed to 1 second.
Vi / boot/grub2/grub.cfg
Change 5 to 1
If [x$feature_timeout_style = xy]; then set timeout_style=menu # change 5 to 1 set timeout=5# Fallback normal timeout code in case the timeout_style feature is# unavailable.else # here change 5 to 1 set timeout=5fi update system
Update the system to the latest version.
Yum update install VMware Tools
Now click Virtual Machine on the virtual machine menu-reinstall VMware Tools and set up the shared directory.
Mkdir / mnt/cdrommount-t iso9660 / dev/cdrom / mnt/cdromcd / mnt/cdromtar-zxvf VMwareTools-*.tar.gz-C / tmpcd / tmp/vmware-tools-distribumount / mnt/cdromrm-rf / mnt/cdromyum update kernelyum install perl gcc kernel-devel./vmware-install.pl
Press enter by default all the time. You can enter the shared directory when you are finished.
Cd / mnt/hgfs/ switching terminal
Ctrl + Alt + F1 to Ctrl + Alt + F6 can switch different terminals.
Restart and shutdown
Restart: shutdwon-r now or reboot
Shutdown: shutdwon-h now or halt
The above is how vmware14 installs centos7. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.