To be honest, install wordpress under linux, before we choose to use apache or Nginx, the first thing we need to understand is your VPS configuration, if your memory is less than 1G, then the tribe recommends that you use Nginx well, relatively speaking, some services in apache are more memory-intensive, of course, if your memory is large enough, then apache is more convenient to operate when configuring various files, quite speaking, The stability seems to be better, but it must be noted that under the premise of sufficient memory, if your host is the same as the tribe's, it is 512M, then it is recommended that you use the Junge LNMP Yijian installation package to operate. Before quoting the statement of New part-time network, let's talk about the experience of the tribe, when starting to use Alibaba Cloud host, the tribe uses Alibaba Cloud Cloud Server ECS using the WordPress blog platform mirror version, in fact, it is apache panel, memory overflow is really only a matter of time, normal 3 to 5 hours, will be due to memory overflow, and then the website has the phenomenon of database cannot be connected. For most newbies who only know how to install wordpress and only know how to make money online, they don't know what Nginx and apache are at all, but when your server reaches a certain bottleneck, you will slowly understand this word, all friends who use wordpress must understand what these two two goods are, the following is some reviews of New part-time network after using them. wordpress installation environment Some don't understand anything, and even install wordpress on windows, which is not ridiculous, because Di Feng also did such a stupid thing when he changed to VPS this year, since everyone knows that this is a stupid thing, so I hope you don't install your wordpress on windows again, because this can easily cause the server to consume a lot of resources and freeze. In this case, the best installation environment for wordpress is the linux system, of course, we only need to buy a virtual host and don't need to care how the system is configured, but here we still need to understand one thing, that is, what is the configuration environment of this virtual host? At present, most of them use apache configuration, and of course, there are also virtual hosts that mainly use Nginx configuration, mainly depending on what they handle. Difference between Nginx and apache One of the easier ways to understand is that Nginx can better handle static files, and apache can better handle dynamic files, this is their main difference, I don't know if friends who make money online know a fact, that is, when processing static files, apache may freeze under 100 concurrency, while Nginx may be able to handle 10,000 concurrency! Of course, this is just the result of a friend's test on the Internet, and everything can only be known in practical application which one is more suitable for you. Experience using apache and Nginx To be honest, it's quite disgusting, some time ago, that is, during the National Day, the server was changed, and at that time, the New part-time network was replaced with an apache configuration server, and then the access speed was greatly reduced, because Di Feng had been using Nignx's server before, but if the server resource consumption was not serious, the speed of accessing static pages was better than Nignx! The reason is the problem of plug-ins, if apache is used, he will generate pure static files, If you use anything else, he won't be able to do it, there is information on the Internet that it is possible to generate pure static files from Nignx, so try it again when you have time. Because sometimes fast and sometimes slow, Di Feng really couldn't stand this kind of speed, so he continued to change the server, and now he has changed back to Nignx, although the opening speed is not very fast, but at least there will be no fast and slow situation. This is what New has experienced with Nginx and apache. The most awesome configuration If you are using a single server or a server with a high configuration, there is also a configuration that is more awesome X, that is, Nginx + apache is used together, which is currently used by many large websites. Finally, let's summarize which one to use for wordpress Well, if your website does not use caching plugins, then you should use Apache, if your website uses cache plugins, then it is better to use Nginx. At least this won't consume too many resources on you. |