It will also be a little unstable, and the storage of cloud space is not free. I always want to buy a vps, and I don't want to buy it because of the well-known reasons in China, the goal is to put Linode and digitalocean, two vps suppliers. linode is a veteran company and has won a good reputation with ten years of operation experience and stable services that can withstand the postgraduate entrance exam. DO is a rising star, ssd hard drives and low prices have attracted many new users.
After thinking from many aspects, I decided to adopt the minimum do configuration, with a 20 GB SSD hard drive, single-core cpu, M memory, 1 TB of traffic per month, and a fee of 5 knives per month, you can use the final American Express card to pay for it.
Create a virtual machine tutorial search online, the configuration of lnmp process is also familiar, but encountered a problem when mysql was up, stuck for a long time, when starting mysql, prompt
Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/pztai. pid)
At that time, I searched for the problem solution on google, and said that I had to delete several files. The results were not good at me, check the err log (this file is under the datadir directory you configured).
InnoDB: memory with malloc! Total allocated memory
Finally in stackoverflow find the answer I want, the virtual machine is not configured swap space, refer to the how-to-add-swap-on-centos-6 this article describes how to increase the swap space, and permanent storage method.
When compiling php and make, a compilation error occurs.
Cc: Internal error: Killed (program PC3)
The reason for this error is that the vps memory is too small. During compilation, add-disable-fileinfo.
In general, vps is good to use and the speed is acceptable. I plan to write my own blog in the near future, which is simple and lightweight. For me, wordpress is still too large.
It is too time-consuming to give up on this idea. It is better to learn something else. There are a lot of wordpress plug-ins. Today we have done cache and optimized mysql, and the resource consumption has reached an acceptable level.