How to build a website after buying a cloud server?

As the infrastructure of the new infrastructure, cloud computing is often talked about every year. Therefore, many people have a basic grasp of cloud computing. In addition, the activities of the major cloud service platforms on Double 11 are super strong every year, so many people Someone who didn't know it bought a cloud server, but he didn't know what to do.

In fact, having a cloud server can do a lot of things. Next, let Modu Cloud introduce what preparations should be done first to deploy a website.
How to build a website after buying a cloud server?
1. Website program

Here, we fully consider that to take care of novice users, we must first have a website program, and then have a complete set of website programs, and we must also be familiar with and master the common programming languages ​​and database types of the website programs, according to the programming language and database. Type to select a suitable operating environment.

2. Operating environment

If Modu Cloud has already purchased a cloud server and has a basic hardware environment and operating system, but does not have a program that can make the code run, what Modu Cloud has to do at this time is to set up the operating environment first. To deploy a website, you must first ensure that a web container is installed on the cloud server. Common web containers include IIS, tomcat, apache, and nginx. Except for IIS, the above four types of web services can run under windows or linux systems.

In addition to the web container, you also need to deploy the program running environment, such as PHP, java, python, etc., asp sites can immediately use IIS; in the end, you need to install and use databases, common databases such as mysql, mssql, and so on.

3. Upload and bind the website

You need to upload the website program to the cloud server and edit the binding in the web container. The binding here is divided into two points: one is the relative path of the binding website program, and the other is the binding of the website domain name. If you set a separate password during the installation and use the database, here you must also change some database connection string arrays in the file that the program connects to the database, including the IP address (127.0.0.1 or the IP address of the Database Machine) , Account number and password, etc.
How to build a website after buying a cloud server?
4. Domain name registration

If the selected cloud server is a cloud server in mainland China, then the website domain name is being filed. According to relevant laws and regulations, only the registered website domain name can be resolved to the public IP of the domestic server. Filing is usually completed within 15 working days, so it is recommended that you do a good job of filing first. Regarding the filing, it is stipulated that the real-name authentication subject of the website domain name must be consistent with the subject of the filing, and then fill in in accordance with the official filing process. Good record information is enough.

5. Domain name resolution

After the record is passed, we need to add the resolution record in the website domain name control panel. If we want to resolve to the IP address immediately, just add the resolution of the @ and www records, and then use the added domain name resolution method Come to visit the website, you can see if there is any effect.

All in all, for novices, if you have a cloud server and want to deploy a website, this is also the case for small programs, APPs and other deployments. I hope it will help you!

Guess you like

Origin blog.51cto.com/15127382/2660424