In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
This article is about how JavaScript makes scripts error-free. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look. Scripts never go wrong
Wechat
About us
Contact us
Product review
car news
thenatureplanet
More Form oMedia:
AutoTimes.
Bestcoffee.
SL News.
Jarebook.
Coffee Hunters.
Sundaily.
Modezone.
NNB.
Coffee.
Game News.
FrontStreet.
GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.