Personal WP station cloud experience, Ali cloud product evaluation

Source: Internet
Author: User
Keywords Cloud experience Ali cloud product evaluation
Tags .mall access ali cloud aliyun bandwidth blog business change

1 ECS
First of all, say myself, has been quite interested in computers, high school began to study something PHP,
On sophomore year 05, registered his own domain name www.cnsjw.cn, and opened his own personal website,
In fact, is basically a BLOG, that era also ran on the virtual host.

Then came all the way in 2010, there is a classmate doing VPS business in the United States, so gave me an account let me experience.
I put my website to move to a VPS on the United States, from the virtual host to the VPS,
In fact, did not feel too much change, because the students have to be configured, and cPanel to manage,
Everything is a fool-style operation, the domain name, FTP, database configuration what can be directly managed.
The biggest feeling is that most of their permissions, most of the space, .htaccess also open up, and can bind multiple websites.

Then again in June 2014, the international environment in our country's network has been getting worse and worse. There have been many and many problems with servers in the United States.
Including stability, access speed, and the risk of being harmonious at any time, etc., since there is nothing illegal on the site,
Just put it into the country forget. So I tried Ali cloud service.

The biggest feeling of opening Ali cloud website is to provide a lot of service ah, but I totally do not understand these services are doing what.
Enter ECS choose the minimum configuration to buy directly, and then it is really a new Linux environment. . .
In addition to the past through ssh, what will not ah, and then began to add a variety of network knowledge on the forum ah,
How to install apache, mysql, php, ftp and other services, but also after the installation of configuration, then know nothing about linux,
Often with the wrong, and then I reset the system tray. . . . At the time that this feature is good, ha ha ha.

In short, after a variety of tossing, Fortunately, the original use of VPS, but also SSH, so my original website data hit a packet,
Wget directly over, and then extract, did not spend much time put the documents are guided over, the database is also directly over phpmyadmin like.
After it is configured so it ran up, in fact, easier than I imagined some.

2 for the record
We all know that the server on the domestic need to face a major problem is to file,
I usually because of external web site projects, but also used each of the virtual host, relative to the VPS, the experience is relatively poor,
Also used various management background, as well as various filing systems, once the slowest time spent 20 days to complete. .

Aliyun's filing system can be said that I used to do the best filing system,
Ali cloud filing system is a completely independent system, each filing subject is an independent account,
Through a string of code and Ali cloud server binding, the system will automatically determine whether the successful filing of this domain name.

Aliyun's filing system is still pretty good to use, before the uploaded files can once again choose to use,
And the record background photo cloth is actually a direct SF Express over, although that piece of cloth is smaller.
The response of each step is also very timely, coupled with the authority over Shanghai Authority, are very fast,
Online customer service and telephone customer service is also question and answer.

I take the project site www.eitdesign.com, has been placed in the United States before, this is the first record,
Because this site can not be filed in the name of an individual, so I borrowed company information with friends,
From the submission of materials to the success of the record, a total of only two working days, very awesome.


3 start tossing
Later, think the site is not directly on the system tray, read the price of the data disk, I feel very cheap.
So bought a 5G independent data disk, and then found the data disk actually can not change the size,
Can only hang a new, hung up the new old can not do without. . .
So soon to use a month, bought a new direct Taiwan server, this directly bought a 30G data disk.
Fortunately now that Ali cloud data disk has been changed to a cloud data disk, you can be released alone, so much more convenient.

Running and running the site, and gradually there will be a variety of errors, and even httpd service hangs,
The beginning really only restart the server, but I think this is not a solution,
So had to enter the process of checking bugs, continue to see the site error log and apache error log.
Strive to solve all the bugs, and finally after experiencing a three-day investigation, found that part of the error is caused by the WP plug-in,
Disable the plug-ins in question, modify some of your own code, and loop errors in .htaccess redirects,
Make up. Htaccess rules and regular expressions related knowledge, can be considered smoothly resolved. . .
Specific reference to this BLOG: Talking. Htacess rewrite http://www.cnsjw.cn/2014/07/htacess-rewrite/

4 RDS
Used with the server, because at the time choose the configuration of the selected 512M memory, as MySQL 5.6 too resource-intensive,
Causing it to happen several times because the system was killed when it ran out of memory due to being ranked first in the memory footprint list. . .
So, there are two solutions, one is to upgrade to 1G memory, there is another is to use third-party database services.

Originally used is the first one, plus 20 yuan a month to upgrade to 1G memory,
Really did not come down with the phenomenon of insufficient memory.
In the principle of tossing, after a month of calm, intends to try the second method ~~~
This third-party database service is another service of Ali cloud, called RDS relational database.

Just 5 yuan per month activities, relatively speaking, whether it is security, or stability, or speed,
Have to far more than set up their own server database services.
But also cheaper than adding 512M memory ~ ~ ~ So decisive use try.
After payment, the moment opened, and then you can migrate the database, first go to a new database with the same name as the original database.
Native provides a migration tool, as long as the permissions according to the instructions fill in the relevant information, click on the key can be a migration.



But only supports 5.1 and 5.5 versions of Mysql, I was 5.6, only use mysqldump to export the database first,
Then use mysql to write to the remote database, the process is relatively simple, the official website is to provide detailed documentation.
Everything is ready, change the database parameters of the site backstage, just fine, at the same time to shut down their own server mysql,
Memory usage fell from 50% -60% to less than 30%, even after rebooting only 18%. . . Sure enough 512M memory is enough.


5 CDN
Because of my site more pictures, then custom server time, see the bandwidth only 1M,
So just thinking, how so small, spent 20 yuan to upgrade to 2M bandwidth. .
Facts have proved that in a large number of picture access, even 2M bandwidth will still feel very slow,
In the text and other parts of the visit, 1M bandwidth can not afford to use it.

So began to consider how to speed up the static file, the first thought of the method is the CDN content distribution network,
The CDN distributes the content of the source station to all the nodes in the country, shortens the delay for users to view the objects,
Improve the user's response to the website's speed of response and the availability of the website, and solve the problems of small network bandwidth, large amount of user's access and unequal distribution of outlets.

The beginning did not quite understand the principle of CDN, and later only understand the need to speed up the static files and php dynamic files separated,
Static files to the CDN to cache, and dynamic files continue to run by the server.
Specific settings can refer to this article: Use Alibaba CDN and RDS services http://www.cnsjw.cn/2014/07/use-cdn-and-res-from-aliyun/
After CDN acceleration, the site is now fast and much cheaper than the $ 20 increase of 1M bandwidth. . .
About a month now with the flow of just about 5 dollars it ~ ~ ~ ~

6 summary
Life is frustrating, the benefits of Aliyun is that these small webmasters provided a tossing space.
After such a toss, each month spent less on memory 20, spend less on bandwidth 20, but get faster and more stable service.
My small server can be considered stable operation for 20 days and see if it can not down a year ~ ~ ~ ~
Of course, in fact, for a small site, it can only be so frustrating to toss about, Alibaba's powerful features simply can not experience what ah.

Aliyun for large sites or services provides a very good solution,
Multiple concurrent accesses require more than one ECS server to handle, and SLBs can be used to automatically allocate requests to different servers.
The database can use relational data RDS services, and non-real-time data can be cached using Open Cache OCS.
Large static files are stored as open storage OSS, as well as CDN for distribution acceleration.
Server interaction between the queue service MQS, site search OpenSearch,
Cloud shield and cloud monitoring plus simple log SLS get a variety of attacks and system monitoring.
Big data processing ODPS and DPC.
At the same time provide a free and reasonable price, much lower than the cost of their own servers.

Opened a lot of services, the service is still very small, ha ha.


Hope that we can more toss in Ali cloud toss, so that their site speed flying ~ ~ never down.
Also welcome everyone to support my station: www.cnsjw.cn

Related Article

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.