当前位置:网站首页>Episode 1 best B tutorial of VMware virtual machine installation (12 days)
Episode 1 best B tutorial of VMware virtual machine installation (12 days)
2022-07-22 06:20:00 【Hyf 。】
1、 New virtual machine
Customize ( next step )—— Default —— Install later
operating system —— Client operating system (Linux); Version selection CentOs7 64 position —— change
Virtual machine name —— Processor configuration 1 Next 2—— Memory size is 2G—— Network type (NAT)—— Default —— Default
—— Default —— The disk size is 50/ Can be split into multiple files —— Default —— complete
2、 install CentOs7 System
Click on hadoop100- double-click CD/DVD- Use IOS Image file - determine
start-up hadoop100 virtual machine
chinese - Simplified Chinese ~ Change the time ~ Software selection ( desktop )~ Installation target location ( I want to configure the partition )
Zoning :/boot=1g; file system :ext4 ,wap=4g: file system :swap,/=45g; file system :xfs;
KDUMP= Cancel start
Network and hostname : Open the network ; Change host name :hadoop100
SECURITY POLICY: Leave it on by default ; Click finish installation
Set up root password -- establish root user --- restart
Amend to accept the agreement --- Complete the configuration --- Default --- Default --- Default --- allow access to --- skip --- Start using
3、NAT The network configuration
edit --- Virtual Network Editor --- change setting ---- Click on VMnet8---NAT Pattern --- Modify subnet ip Address 192.168.10.0
NAT Set up --- gateway IP192.168.10.2--- determine --- complete
Advanced network settings --- More network adapter options --- choice VMent8--- Right click --- Select Properties
choice Internet Protocol version 4--- Set the default gateway :192.168.10.2--- The preferred DNS Server address :192.168.10.2
spare DNS Server address :8.8.8.8--- determine --- determine
4、 Start virtual machine
i Enter editor Esc Exit the editor shift+:+wq Save and exit
Get into root user ( Or enter atguigu The user then enters the command su root Switch to a root Account )
modify IP Address order :vim /etc/sysconfig/network-scripts/ifcfg-ens33
Find dynamic modification IP Address changed to static IP Address static
Set up IP Address :192.168.10.100
Set up the gateway :192.168.10.2
Set the domain name parser :192.168.10.2
Modify host name command :hostname
The default is hadoop100
modify hosts file
command :vim /etc/hosts
192.168.10.100 hadoop100
192.168.10.101 hadoop101
192.168.10.102 hadoop102
192.168.10.103 hadoop103
192.168.10.104 hadoop104
192.168.10.105 hadoop105
192.168.10.106 hadoop106
192.168.10.107 hadoop107
192.168.10.108 hadoop108
reboot restart
5、 install Xshell7: Host and name input 192.168.10.100-- Click user authentication --- user name :atguigu-- Input password --- Click finish --- Connect --- Accept and save
6、 install xftp( Enter your user name and company at will ): open xftp There is a green bag on the top , Click on the green package , You can transfer files to the virtual machine
7、 Template virtual machine environment preparation
Use yum The installation requires that the virtual machine can access the Internet normally ,yum Before installation, you can test the networking of virtual machines (root Account )
Test network commands :ping www.baidu.com
install epel-release: Equivalent to a software warehouse
[[email protected] ~]# yum install -y epel-release
If you see the picture above PID To be locked, you need to kill the process number ; command :kill -9 3030
Command again [[email protected] ~]# yum install -y epel-release
How to avoid the above situation install epel-release Have succeeded
Be careful : If Linux The minimum system version is installed , The following tools also need to be installed ; If you install Linux
Desktop standard , You do not need to do the following
* net-tool: Toolkit collection , contain ifconfig Wait for the order
[[email protected] ~]# yum install -y net-tools
* vim: Editor
[[email protected] ~]# yum install -y vim
Turn off the firewall and turn off the firewall to start automatically
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# systemctl disable firewalld.service
To configure atguigu Users have root jurisdiction , Easy to add later sudo perform root Orders of authority
[[email protected] ~]# vim /etc/sudoers
modify /etc/sudoers file , stay %wheel Add a line below this line , As shown below :
atguigu ALL=(ALL) NOPASSWD:ALL
stay /opt Create a folder in the directory , And modify the master and group
stay /opt Create under directory module、software Folder
[[email protected] ~]# mkdir /opt/module
[[email protected] ~]# mkdir /opt/software
modify module、software The owner and group of the folder are atguigu user
[[email protected] ~]# chown atguigu:atguigu /opt/module
[[email protected] ~]# chown atguigu:atguigu /opt/software
Uninstall the... From the virtual machine JDK
Be careful : If your virtual machine is minimized, you don't need to perform this step .
[[email protected] ~]# rpm -qa | grep -i java | xargs -n1 rpm -e
--nodeps
rpm -qa: Query all installed rpm software package
grep -i: Ignore case
xargs -n1: Means that only one parameter is passed at a time
rpm -e –nodeps: Force uninstall software
[[email protected] ~]# reboot Restart the virtual machine
边栏推荐
- 过d盾asp webshell+冰蝎免杀马探讨
- IP protocol, the king of defending
- 壳聚糖/葡聚糖/纳米羟基磷灰石复合水凝胶/鱼明胶-半乳糖壳聚糖水凝胶肝支架的制备
- 浮动简介和浮动特点
- Ravendb fully transactional NoSQL document database
- Leetode 416.分割等和子集
- IDEA 搭建和环境变量
- leetcode 931. Minimum sum of descent path
- [book club issue 13] + Chapter 1 multimedia processing tool ffmpeg tool set
- leetcode 1732. Find the highest altitude
猜你喜欢
LeetCode刷题:反转链表 与 链表中的中间节点
The mobile R & D platform EMAS 3.0 is newly upgraded. Welcome to Alibaba cloud's official website to search EMAS for experience
The role of visual management of communication infrastructure in ISO 2.0
leetcode 938. 二叉搜索树的范围和
64.最小路径和
Some tool modifications
LeetCode刷题:二叉树的中序遍历
表格表单的样式
如何规避以太网接口与布线不匹配的风险
Ravendb fully transactional NoSQL document database
随机推荐
LeetCode刷题:平衡二叉树与翻转二叉树
Redis:主从复制
64. Minimum path and
LeetCode刷题:链表中倒数第k个节点
软件测试:等价类测试与基于判定表测试及综合题解析
面试遇到的问题
剑指 Offer II 099. 最小路径之和
streamlit TypeError: Plain typing. NoReturn is not valid as type argument
Discussion on ASP webshell+ ice scorpion free horse killing
剑指 Offer II 100. 三角形中最小路径之和
leetcode 1413.逐步求和得到正数的最小值
Can or could
Development of digital collection system -- Construction of mall blind box H5 platform
Typora beta expired solution
leetcode 1380. Lucky number in matrix
网络连接工具大全
Goldfish rhca memoirs: cl210 performs image operation -- custom disk image
设置背景颜色,背景范围等,雪碧图,渐变色,放射渐变
Technical team: 4 suggestions for code review initiator
长度单位,颜色单位,文本样式和字体样式