Buy a server
Known major server manufacturers
1 Alibaba Cloud click to access directly
2 Click to access Huawei Cloud directly
3 Tencent Cloud click to access directly
I still recommend that big companies will not run away.
What I purchased here is a one-year Huawei cloud server (new users 64 per year). Mirror recommendation Ubuntu 18
Log in to the server (you need to reset your password!!!)
Click on the console in the upper right corner
After completing the purchase, select the third option on the left and click
You can see the server you purchased
Click the blue text on the right side of the icon to enter detailed configuration
Click remote login cloudshell login
Enter password to log in directly
Install EMQX
Visit emqx official website
Just enter the commands in steps 1 and 2 on the Ubuntu command line. emqx will start by itself. It is very simple. You don’t need to go to the mirror station to copy the code step by step.
Configure the server security group (be sure to restart the server after configuring)
Rule reference
Configure as shown
Visit the EMQX console
The fixed format of the URL is your public IP+: 1883
For example 00.00.00.00:1883
The account defaults to admin and the password defaults to public.
Subscription publish test
Click to enter as shown in the picture
The hostname is the public IP of your server
After filling in, click Connect
Click Subscribe and Publish respectively. Once the data comes out, it will be ready.
Such conscientious articles must be posted three times in a row