In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Linux
Linux operating system
Introduction to virtual machine
Important understanding: (at the beginning of learning linux, it is always foolish to distinguish the relationship between them. With this example, you can have a basic concept of VM and centos.)
VM is understood as video playback software (iqiyi), centos is understood as a movie, and movies are played on the software.
First, steps:
Go to bios to change my settings and turn on virtualization device support (F10)
Second, there are three forms of links to virtual machines:
(1): bridge connection Zhang San can access Li Si's linux and windows can communicate, but a total of 255,192.168.0.The number of this network segment is only 255. if the number of classrooms is large enough, it will cause ip address conflicts, linux can access the public network Zhang San, Zhang San can also access the linux system to achieve interoperability.
(2); NAT link: Wang Wu will have two ip addresses, one is the teacher environment gateway 192.168.0, and the other address 192.168.100.200 will form a network with linux
Therefore, linux does not occupy the classroom is the network segment, linux can pass 192. 168. 0. The agent found Zhang San to access the public network, but Zhang San could not access linux
(3): host mode
Link to the host only
Three: partition disk space (manual partition)
A total of 2 gigabytes of memory, depending on personal needs, can also be 4 gigabytes
Swap partition: swap partition. When the system memory is insufficient, use swap partition to replace memory temporarily. Normally, it is twice the allocated memory. Here I allocate 4G.
/ boot:linux needs a boot file when it starts. The boot file is placed in the / boot partition by default. It doesn't need to be too large here. It will be ok in 200m-400m.
/ (root partition): the rest is placed in this partition. The only root directory / in linux is equivalent to disk c, disk d, disk e in windows. But this is the only directory in linux
Four directory structure
In the world of linux, the directory where everything is a file linux has and only one root is "/"
To understand the directory structure, to know which files are placed under each directory, and to have an overall concept of linux
5. Remote login (using x-shell)
Because in the real project, the linux system and mysql installation files are all in the computer room, which may be far away from us, so in order to achieve remote operation of the linux system, mysql and other files, we must download xshell on the website, you can achieve remote login to linux, login is successful, you can operate instructions in the x-shell interface!
VI. File upload and download (using x-ftp)
As mentioned above, in order to realize the remote operation of the linux system, we need not only to log in, but also to upload and download it. X-ftp is used at this time.
7.
The root directory is / (unique root directory)
Files stored in the root directory
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.