Azure creates a virtual machine and deploys a site pit

Source: Internet
Author: User

I got a message today. To create a virtual machine in Azure and deploy a site that has just completed.

1. According to past habits, our Web server and database server are separate. Today to save resources and get online as soon as possible. Create a single virtual machine that includes SQL Server on Azure. Create a site directly after you configure IIS.

2. Create a A7 configuration based on customer requirements. Additional 8 500G disks are required.

3. The server also needs to be added to our intranet. Facilitates data access and transmission between servers.

After 2 hours of learning the creation was finally completed. It's pretty easy. Directly configure IIS, create databases, users, and so on. Today's mission is complete.

While listening to the song on the side of the operation ...

First Configure IIS

This step of development will often be configured so it is not difficult. Open Control Panel-"Go to Programs and functions--" Select the Turn Window feature on or off. Then find some features such as Internet Information Service, ASP. Check OK. However, this process is configured in the Windows (7 8 10) system. But in Windows Server, it's just a different panel. A panel of server Manager pops up on this server. We should all know this. I used to do the development of the server system. So I'm familiar with the process.

So usually with the server system to develop or good server configuration familiar points.

Click: The Add Features button should pop out. Tick the IIS Services dialog box

Open after a bit of an ignorant IIS server seems to be not obvious. Only one winrm IIS Extension looks a bit like. Continue looking for the location where IIS is located. The Windows Process Activation Service seems to be the first time it's met. Suspect the operating system may be having problems. My Computer Right button-"properties."

I wipe the virtual machine operating system on Azure selected SQL Server R2 Enterprise Edition: Windows Server R2 DataCenter.

Feel the Microsoft customization of this system will not deploy the site when a lot of things ah. Regretting the creation of virtual machines without looking carefully at the difference between operating systems. have done so much work. Then keep looking for the IIS service. Check that the WinRM IIS Extension, Windows Process Activation Service, and. NET related features are checked.

Wait for the installation-----

Installation is complete. Check to see if the IIS server is added. With an uneasy heart open the management tool. The familiar icon was added successfully. Open to see if nothing is different. Return to see because English is not very good. It seems that Windows Process Activation service is right.

Open Addroles.

A familiar web Server. This is what happens. Also installed.

Anyway, go ahead and check the site before you come back.

1. Add a domain name

2. Create a site

3. Setting up the Directory

......

Get.

Access domain name: Results no site exists

There's something wrong. Ping the domain name all lost. Ping does not pass. Colleagues say azure virtual machines are not allowed to use the ping command.

What's the problem?

The endpoint needs to be configured. Click Endpoints on the dashboard of the virtual machine. Add a TCP 80 port. Ok, Fix it.

A visit to me, at least the site can be visited. Although there is a mistake.

Try to access the static page. No problem.

Baidu a bunch of solutions have not been solved. Smoke a cigarette and say it. Wipe wipe

Think hard about how to deal with this problem. What is wrong with the internal error. If you can show the details of the error is not a good solution. Look at the log, IIS logs. There is no obvious error message in the System log.

When you suddenly see the IIS error page modified under configuration, you can display detailed error messages. I don't know how we can solve this problem here. That's what I did.

1. Select the site-----Double-click Error page.

2. Select Status Code 500-----Click Edit Features Settings ...

Tick the detailed error---OK.

Re-open the site above the internal error has become a detailed error message appears

The error page is not listed.

It means re-registering the IIS installation. This process will not be said.

Run the C:\WINNT\MICROSOFT.NET\FRAMEWORK\V version number \aspnet_regiis. Exe-i can

The site is functioning properly.

In fact, it's not finished here. ..............................................................................................................................

A piece of news was created in the background. The result is stored in a database garbled.

First time using SQL Server garbled ...

1. Procedural issues

There are no coding problems after the check. Normal UTF-8 encoding

2. The English version of SQL Server software issues

No, I have been using English version all the time. There's no such thing.

3. Types of database fields

The garbled characters are the varchar and text types. modified to nvarchar after resolution.

Rookie I don't know where the problem is. Anyway, the English version of the system installation in the English version of SQL Server field varchar does not support Unicode encoding. The Chinese nature is garbled.

Finally deployed ...

Wait, don't forget to change the error page's detailed error to default. In case the website there is an error. will provide more information to the conscientious.

Azure creates a virtual machine and deploys a site pit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.