[Linux] Tencent Cloud Server Construction Environment

1. Linux background

        On October 5, 1991, Linus Benedict Torvalds, a graduate student at the University of Helsinki, told a Usenet news group

(comp.os.minix) announced that he had compiled a small UNIX-like operating system called Linux. The new operating system is influenced by

Inspired by another small UNIX operating system, Minix, which was developed by a teacher named Andrew S Tanenbaum

Sent. Readers may guess that the system released should be version 0.01 of Linux, but this is not actually the case. Real Linux

Version 0.01 has not been released because version 0.01 is not practical. Linus was just the first Linux FTP site

The source code for this version is available at (ftp://nic.funet.fi).


2. Set up a Linux environment

  • Install it directly on the physical machine . However, since the Linux desktop is very unfriendly to use , it is not recommended .
  • Use virtual machine software to build Linux on a virtual machine. However, because there are some bugs in the current virtual machine software (such as VMWare), it will cause various inexplicable problems in the environment, which is quite troublesome.
  • To use a cloud server , you can directly purchase a cloud server from a server manufacturer such as Tencent Cloud , Alibaba Cloud or Huawei Cloud .

Why use cloud server:

        Using a cloud server not only makes it easier to set up the environment and avoids hassles , but also has the biggest benefit : projects deployed on the cloud server
The project can be directly accessed by the external network. At this time, it is no different from a company publishing a formal website . It also allows us to
The programs you write are actually used by others.
 

3. Purchase a cloud server

We take Tencent Cloud as an example , and other server manufacturers are similar .

1. Enter the official website Student Cloud Server_Student Cloud Host_Student Cloud Database_Cloud + Campus Special Package-Tencent Cloud  ( directly search for " Tencent Cloud Campus Plan " on Baidu )

2. Log in to the website ( you can use qq  or WeChat to log in )

 3.  For the operating system on the right, select CentOS  7.6 64- bit . Select the purchase period as needed ( 1 year is recommended ), and click Buy Now .

This step requires real-name authentication (and students under 25 years old do not need student authentication)

4. After the purchase is completed , you can find the server you purchased in the console . Click in to see the IP  address of the server.

The blue box is the public IP address . We will use this IP to log in to the server later .

 5. Set the root  password : Check the server and click Reset Password ( this step may require SMS verification ). It is recommended to set the root password to be slightly  more complex , otherwise it will be easily hacked.

So the steps we need to complete in this process are summarized as follows:

  • Server ’s external IP

  • Administrator account of the server ( fixed to root )

  • Administrator account password ( set on Tencent Cloud website )


4. Use xshell to log in to linux

Install xshell at the following URL: xhell URL https://www.xshell.com/zh/free-for-home-school/

Open xshell:

image-20220910192432048

Then log in as the root user: fixed statement ssh @root+ip address

Enter the password you set

This will complete the login


5. Multiple people use cloud servers

Command: adduser name and can set password

image-20220910193258345

What needs to be noted here is that we cannot see the password input, but the password will be entered. At this point, the user has been created successfully. Once here, we can log in using the user we created:

image-20220910193645521

Enter the password for the user you created:

If you can create a user, you can delete the user:

Instructions to delete users (we still log in to the root user to delete the created users):

userdel -r + username:

image-20220910193954845

 The user created at this time was successfully deleted by us.


Guess you like

Origin blog.csdn.net/weixin_62985813/article/details/131968904