HUAWEI CLOUD builds a web chat room

 

I wanted to be familiar with the remote network service configuration. I saw a case of how to build a web chat room. Then I bought a Huawei cloud server, charged on demand, and rented a domain name for one year. Finally, I built a chat room website named after me, and invited my friends to log on to the website from afar to chat and try it out. It was quite interesting. The domain name was valid for one year, because it was just a test and the cloud service resources were released.

The whole process is helpful to be familiar with cloud communication and understanding of ip. Sort out the ideas:

  1. Register a domain name: If you want other people to join your chat room, you must first have an address that can log in, that is, a domain name. Make sure that it has not been registered by others. Different domain names may have different fees.
  2. Create a virtual private cloud. Is to create a subnet and specify the scope of the network.
  3. To create a security group is to specify network access rules, such as which ports are open.
  4. Create an elastic cloud server. The reason for the flexibility is that the specifications can be changed according to demand, such as memory size, number of cores, operating system type, and hard disk size.
  5. Configure the network on the elastic cloud server, purchase the elastic IP, add the previously created subnet, and set the bandwidth and billing method.
  6. Set the login method, you can choose the key to log in to increase security. Of course, for convenience, you can also log in with a password, so you don't need to load the private key every time.
  7. Log in to the cloud server and install the software. Just install the server-side software.
  8. To log in to the cloud server by means of a domain name, you must bind the domain name to the ip, which is to configure the dns mapping relationship so that the domain name points to the ip, so that the browser will find the corresponding ip in the dns data set and establish a connection with it. This operation must be done in the cloud server console.
  9. Enter the cloud server, enable ssl login, and use a tool called caddy to configure the https connection.
  10. Enter the domain name as https in the browser. Mine is the port 8080 specified under the caddy tool, instead of the default port 80, you need to add: 8080 after the domain name
  11. Then I log in to my website, and the installation wizard will be displayed for the first time because you are an administrator.
  12. Then you can send the URL to your friends and chat with you on the browser side.

Elastic Cloud Server (ECS) is the most basic computing component consisting of CPU, memory, operating system, and cloud hard disk. After the elastic cloud server is successfully created, you can use the elastic cloud server on the cloud just like using your own local PC or physical server.

The activation of the elastic cloud server is self-service. You only need to specify the CPU, memory, operating system, specifications, and login authentication method. At the same time, you can adjust the elastic cloud server specifications at any time according to your needs.

 Virtual private cloud is to build an isolated virtual network environment for elastic cloud servers that users can configure and manage independently.

Guess you like

Origin blog.csdn.net/sinat_39416814/article/details/105000386