Vmcloud Gift--vmcloud Blog Migration full record

Source: Internet
Author: User

650) this.width=650; "title=" wpsf602.tmp "style=" border-right-width:0px;border-bottom-width:0px;border-top-width : 0px; "border=" 0 "alt=" wpsf602.tmp "src=" Http://s3.51cto.com/wyfs02/M01/5C/1B/wKiom1UaiMSQCAXvAABArw5aaJE754.jpg " Width= "213" height= "/>"

Number Vmcloud

Hello everyone, in order to avoid the April Fool's Day re-open this subscription number (in fact, in order to avoid being misunderstood as an April Fool's joke), so the election today, the last of March, the Vmcloud subscription number officially opened. If you say more words can not explain the role of Vmcloud subscription number, then let me use practical action to understand the meaning of this Vmcloud subscription number: P

650) this.width=650; "title=" wpsf613.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf613.tmp "src=" http://s3.51cto.com/ Wyfs02/m00/5c/16/wkiol1uaigoi1tapaadyjn12gbe444.jpg "width=" 484 "height=" 201 "/>

———————————————————————————————————————————————————————————————————————————————————————————————————

Body part

Remember I in the "Follow your heart-talk about Vmcloud" in the article, at the end of last year, Vmcloud blog bandwidth once exceeded 6G (resulting in the October, November end of the month has two or three days is inaccessible state, show bandwidth excess), and the original blog host access to the bandwidth limit is 6G (after all, is a personal blog, so no investment too much, the purchase is Wphostz primary type. Although later found that most of the traffic from the crawler Baidu, but at least also proved that there is a risk of excess bandwidth, so consider repeatedly decided to migrate to Azure above the way to do the demo test, in practice how to migrate the site to the cloud website, do not migrate do not know, a migration thousand layers of waves. Not much to say, first to send the twists and turns of the details as the first micro-text, but also to give you attention to this subscription number gift.

Migration First Step: Choose a migration scenario

? Preselection a: Using a A0 or A1 Windows Powered by PHP, MYSQL

Preselection B: Using a A2 Windows Powered by PHP, MYSQL

Pre-selection C: Using a A0 Linux with PHP, MYSQL

Preselection Plan D: using Web Service

Finally, the main reasons for the selection of program D are as follows:

Scenario A abandon reason: A0, A1 Windows card is intolerable, deprecated, cost: A0 $13.40,a1 $55.06.

Scenario B abandon Reason: Although A2 windows can meet all the needs, but the price! Cost: $110.12 (well, it's more of a tear, and the MVP is strongly asked to increase to 150+).

Scenario C Waiver Reason: Although said performance (no actual test, do not know whether to support the future of PV), the cost can be tolerated, and the way to implement NLB and Web-based application of the expansion of the need for manual operation there are many inconvenience, and the cost-effective comparison with the Plan D, program C is defeated. Cost: $13.40

The benefits of program D: Cost! Cost! Cost! The cost is only: $10.28 (including 10GB bandwidth, of course, the price of bandwidth is very cheap), and expansion is very convenient! It's the Xiaomi in Azure service!

Migration Step Two: building a basic environment

Choose the platform of the blog, I still choose wordpress, because as a popular player in the blog, its advantages lie in the structure of simple and easy to use, good background management interface, with a large number of theme support, for those who do not develop skills is very suitable.

Of course, the most important thing is that my original blog is based on WordPress, and WordPress provides a very good official tool-export import (such as)

650) this.width=650; "title=" wpsf614.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf614.tmp "src=" http://s3.51cto.com/ Wyfs02/m01/5c/16/wkiol1uaigsatmgaaaa6-pom0ka600.jpg "width=" 337 "height="/>

Migration costs are certainly much lower than other platforms, based on the implementation of the difficulty (in fact, I am lazy to learn to migrate to other platforms, if there is a chance to share it: P), I still obediently choose the original platform it!

As for setting up a basic environment, I would not say that the Azure native library provides wordpress templates that can be created directly (this is a well-established setting for novice-level customers or lazy-to-disease patients!) ) (e.g.)

650) this.width=650; "title=" wpsf625.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf625.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/16/wkiol1uaigwgweseaadqlkmipyw463.jpg "width=" 558 "height=" 373 "/>

(as this article is mainly for the introduction of migration, it does not make detailed analysis of other platform products, you crossing if you are interested in Baidu: P)

Migration Step Three: Migrating data (zigzag point!) )

About migrating data, it's really a runny nose. To make a long story short, migrating data involves the following points:

1. Article List Import

Difficulty: A Star

Overall time: approx. 10 min.

Originally this step of difficulty in more than four stars, but with WordPress (again, I did not advertise for WordPress) Export Import Tool, this step difficulty level is straight down, only need to in the original blog background to export data (according to the size of the blog to generate an XML file, The author of the original blog about 80 blog posts, generated 6M XML files, and then in the new blog backstage Import can

2. Image migration

Difficulty: three stars

Overall time consuming: approximately 2 hours (depending on file size)

This step can be done by importing an XML file after an import option to complete the migration of the image, but the author of the picture file as much as 500m,import takes too long, so I will directly download the original blog pictures down, Then go to the new blog and use FTP to import.

You can locate your original blog in the following ways (you can also find it based on the root directory path of the site):

650) this.width=650; "title=" wpsf626.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf626.tmp "src=" http://s3.51cto.com/ Wyfs02/m00/5c/16/wkiol1uaigbwbv9vaagtoicmmw0440.jpg "width=" 558 "height=" 405 "/>

Then you need to determine where the path to the new blog is, and the point of doing this is that you need to replace the image path in your article with the path to the new blog, or you will find that your post images are all forked after importing the data (you can, of course, set the image path based on your original blog settings. But that's more expensive). My advice is this, you can make a list:

Old blog Picture link New Blog Image Link
Http://vmcloud.info/xxx/xxx1/xxx.jpg Http://vmcloud.info/xxx/xxx.jpg

When you're sure of the link to the old and new blog, you need a gadget: Navicat for Mysql, which can help you connect to the DB on Azure, and you can do some things, The picture connection here is need you to use this tool (of course you use other such as phpMyAdmin also can) do picture connection substitution, connect to website corresponding db, you need to find wp_posts this table, and then use the table listed above, Use the Replace to replace the picture link for the blog post in the new weblog:

650) this.width=650; "title=" wpsf636.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf636.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/16/wkiol1uaigei326laacbiuu-30o495.jpg "width=" 558 "height=" "/>tips: about how to find your db

650) this.width=650; "title=" wpsf647.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf647.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/1b/wkiom1uaimyzpmmlaadd2w1lliy414.jpg "width=" 558 "height=" 364 "/>

Then you'll jump to (the rest you know):

650) this.width=650; "title=" wpsf648.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf648.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/16/wkiol1uaigqdqexlaag2oguspp4843.jpg "width=" 558 "height=" 410 "/>

3. Domain Name Migration

Difficulty: Two stars

Overall time: approx. 2 min.

In this step, I planted a somersault, and is not technically planted, if you want to change the original Azure website Default domain name (xx.azurewebsites.net) to your custom domain name, first you need in your DNS Server set a record and CNAME record, both indispensable (in fact, there is no need for IP mosaic, but since the habitual hit on the even! ):

Dnspod Settings Reference:

650) this.width=650; "title=" wpsf659.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf659.tmp "src=" http://s3.51cto.com/ Wyfs02/m00/5c/16/wkiol1uaigujqqv0aacwte0bvkw987.jpg "width=" 558 "height=" 158 "/>

GoDaddy Settings Reference:

650) this.width=650; "title=" wpsf669.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf669.tmp "src=" http://s3.51cto.com/ Wyfs02/m01/5c/16/wkiol1uaigyswre9aaedgh4uo0e568.jpg "width=" 551 "height=" 347 "/>

About the IP used for a record, just see the click Admin domain name in the Azure website background to see:

650) this.width=650; "title=" wpsf67a.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf67a.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/16/wkiol1uaig2tahtzaafeb9od3wq500.jpg "width=" 558 "height=" 457 "/>

There was no problem here, but the author made a joke, but also distressed me for two days, in setting a record when I use the following table format:

A record Point to IP
* 23.XX. Xx. Xx

Did you find anything wrong? Did not find the problem of my various reasons to find the answer, get the answer there

A) There is a problem with DNS server! There may be a delay, wait 48 hours to say it again!

b) Web website does not support bare domain name as if you try www (actually support)

c) There is a problem with your TLL setup! Can't use 1 days!. Change it to 1 hours!

d) Well, I don't have this problem anyway. (T T)

Anyway, the answer is a variety of, but the final answer is God horse?

It's actually this *! Didn't see it? is *

Yes, because the author too long did not move the DNS Zone file, unexpectedly in the addition of a record with the wildcard character with an asterisk, in fact a record of the wildcard is generally to do with @ To do the wildcard! The parsing is done in less than 5 minutes after Setup! Dumbfounding

4. Inherent link Migration:

Difficulty: Two stars

Overall time: approx. 2 min.

When you finish the image migration, link migration, Domain name migration, you may find that although the use of domain name to open the first page is the migrated domain name, but you click the link will jump to the Azure website URL, this reason is because you do not do WordPress inherent link migration , so-called intrinsic links such as:

650) this.width=650; "title=" wpsf67b.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf67b.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/1b/wkiom1uainhyakr-aace17pxflc788.jpg "width=" 558 "height=" 302 "/>

If you do not make changes, then the link should be in the form of a link to azure website (such as Xx.azurewebsites.net), to make changes here, you need only one command, the same use of the navicat for MySQL link after using the following SQL statement:

1. Update wp_posts Set GUID = Replace (GUID, ' http://old.domain.com ', ' http://new.domain.com ');

2. Update wp_posts Set pinged = replace (pinged, ' http://old.domain.com ', ' http://new.domain.com ');

3. Update wp_posts Set post_content = replace (post_content, ' http://old.domain.com ', ' http://http://new.domain.com ');

4. Update wp_options Set option_value = replace (option_value, ' http://old.domain.com ', ' http://new.domain.com ');

When you're done, you'll find that it's basically no problem.

5, plug-ins and small tool migration:

Difficulty: A Star

Overall time: approx. 1 min.

This step is not good to say, in fact, you have the original blog space in the Wp-content/plugins folder to copy all the contents of the new blog Azure FTP, and then refresh, you will come back to the forwarding.

Migration final Step: testing and commissioning

Finally, enter Vmcloud.info:

650) this.width=650; "title=" wpsf68b.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf68b.tmp "src=" http://s3.51cto.com/ Wyfs02/m00/5c/1b/wkiom1uainkyt2wnaacgzwrhskw661.jpg "width=" 558 "height=" 254 "/>

Open one of these links:

650) this.width=650; "title=" wpsf69c.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf69c.tmp "src=" http://s3.51cto.com/ Wyfs02/m01/5c/16/wkiol1uaihdqjelyaaeubjx4e4s953.jpg "width=" 558 "height=" "/>"

Look at the speed at which each node accesses the post-migration blog (website location in East Asia):

650) this.width=650; "title=" wpsf69d.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf69d.tmp "src=" http://s3.51cto.com/ Wyfs02/m02/5c/16/wkiol1uaihlywp6paahl1gtmem4143.jpg "width=" 559 "height=" 482 "/>
? With this opportunity, I will also make changes to the overall blog style, add a lot of friends to reflect the navigation, please see the top right corner of the blog, but still recommend the use of search, learning the sense of accomplishment, always from your discovery. As the original vmcloud.info may be a lot of friends do not adapt, in order to facilitate the memory, enabled a new domain name: VMCloud.com.cn, no matter which domain name can be found in my blog.

Appendix:

Azure Pricing: Http://azure.microsoft.com/zh-cn/pricing/calculator/?scenario=appservice

Site node test: http://www.17ce.com

———————————————————————————————————————————————————————————————————————————————————————————————————

After the dry goods have been sent back to this public number:

When I first knew I had to open a subscription number, I refused (and nobody asked me to), because I think you can not let me drive me, the first I want to try, I do not want to say, I opened a subscription number and then bought a bunch of zombie powder to add a subscription, and then a friend circle of various subscription number finally also push to send shopping ads, what is cheap! Very affordable! Very High-end! So the person who really subscribed to my subscription number will scold me, never said so well! proves that this subscription number doesn't work at all, it's all fake! So I said, let me try it first ha, later after to China to four, fanwindows, it oranges, donet cross-platform, dotnet and other subscription number of the subscription verification, found that these subscription number of the audience is very accurate, the content of the work is very helpful, really can achieve the "MVP treaty" in the " Share "Responsibility, that I have been concerned about so many days, and benefited, I also recommend to me around the partners to see" to come, the big guys are concerned about the basin of China to four, Zhang Cheng Brother's turn window, there are friends Brother's technical subscription number Ah, everyone try! "Then I told my subscribers, although the release of micro-text audiences accurate, demanding quality, the release cycle may be very long, but I will not deliberately to add a variety of zombie powder, push a variety of useless information to everyone, many MVP predecessors to open the subscription number is so, I opened the subscription number is so!

650) this.width=650; "title=" wpsf6ae.tmp "style=" border-right-width:0px;border-bottom-width:0px;float:none; Margin-left:auto;border-top-width:0px;margin-right:auto; "border=" 0 "alt=" wpsf6ae.tmp "src=" http://s3.51cto.com/ Wyfs02/m00/5c/16/wkiol1uaihozgel2aabnad8gs-4160.jpg "width=" 178 "height=" 198 "/>

So, you crossing, please feel free to subscribe to it!

———————————————————————————————————————————————————————————————————————————————————————————————————

PS: First write micro-text, typesetting god horse details please crossing more magnanimous!

The way of attention

① Copy "number or id", paste the search number in "Add friends" attention.
② Click "+" in the upper right corner, "add Friends" will appear, enter the "Find the public number", enter the name of the following public number, can be found.
③ Red character ID part long press can be copied.

This article from "Vmcloud Network Research Practice section" blog, declined reprint!

Vmcloud Gift--vmcloud Blog Migration full record

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.