Easily set up a Linux environment

Table of contents:

We usually use Windows systems and are still very unfamiliar with Linux systems. Why use Linux system? After all, it is open source. A software is open source. The most basic meaning is that the code is public and anyone can view, modify and use it.
Open source software has the characteristics of stable code, high efficiency, security, and few bugs. Such a good free operating system is very easy to use. Everyone comes to learn, hahaha.
Linux is an open source operating system. Do maintenance personnel maintain and optimize Linux for free? The answer is yes. They maintain Linux voluntarily and are equivalent to volunteers. So why are they so "stupid"? Isn’t this purely free labor? In fact, those who can continue to participate in writing operating system code are top engineers. They are not short of money. From the perspective of Maslow's hierarchy of needs, they have reached the fifth level - self-actualization.

1. Use cloud server

Using a cloud server, you can purchase a cloud server directly from service providers such as Tencent Cloud, Huawei Cloud, Alibaba Cloud, and Baidu Cloud.
In order to learn Linux better, I bought a server from Tencent Cloud. (Real development and production environment)
These servers have certain discounts for students, check them out and buy the best ones. Using a cloud server is not only easy to set up the environment, but also allows you to save yourself a lot of trouble. In addition, it also has the advantage that projects on the cloud server can be directly accessed from the external network. At this time, it is no different from the company publishing a formal website.
I chose a lightweight server, just for learning, and there is no need to buy a good server.
How to get a lightweight server more cost-effectively:
1. There are many cloud servers that are available for trial for 2-3 months. Check them out.
2. Buy a cloud server and share it with multiple people to share the cost. (I will write this below)
Log in to Tencent Cloud:
Insert image description here
Then:
Insert image description here
Choose a preferential package:
Insert image description here
Note:
Select CentOS 7.6 64-bit for the operating system on the right. When purchasing, it is recommended to choose one year, and then authenticate with your real name. The authentication is very fast.
Congratulations on getting the cloud server.
Insert image description here
Insert image description here
We need to use the public IP address to log in to the server. The red box is the public IP address. Then we'd better reset the password .
Insert image description here
Add:
If you buy the cloud server as a windows system, we You can change to Linux system by reinstalling the system .
You can also click here
Insert image description here

Then click OK.
Insert image description here
In other cases, you can click the hyperlink below to reset the system: Specific operations for
resetting the system

2. Use virtual machine software

Virtual machine installation:
1. Download the software VMware player for a virtual machine
2. Download an operating system image file

2.1 Download virtual machine software

Baidu search:
Insert image description here
Then:
Insert image description here
Then:
Insert image description here
Finally:
Insert image description here
After the installation package is downloaded, just click Next.

2.2 Download an operating system image file

It is recommended that centos 7 mirror Tsinghua University . You can search directly.
Here, I will give you the URL:
Tsinghua University Open Source Software Image Station.
Here I choose this:
Insert image description here
After the download is successful, open the virtual machine, create the virtual machine, find the image file of the operating system, and then Always take the next step.
Insert image description here
This means that I have built a virtual machine
Insert image description here

3. Install directly on the physical machine

I won't show it in detail. Give a link directly:
click the link

4. Use XShell to remotely log in to Linux

I will directly analyze the XShell software for you.
Link: Xshell
extraction code: 1234
After downloading, open the Xshell software and enter the login user name. The fixed administrator user name is root. After entering root, you will be asked to enter a password. The password is the administrator account password reset above.
Insert image description here
Enter your password to log in.
Supplement: There are six steps
for multiple people to rent a cloud server
Insert image description here
together:

  1. The person who bought the cloud server logs into the Linux system
  2. Command: adduser - add user
  3. Enter the name you want to add
  4. Command: passwd - set a password for the user
  5. This is used to enter the password. The password cannot be seen.
  6. Then re-enter the password and the user is added successfully.

If we don't want others to use the cloud server, we can do the following:
Insert image description here
Command: logout - exit the system
Command: userdel -r username - delete the user.

Guess you like

Origin blog.csdn.net/plj521/article/details/133257177