WordPress knowledge sharing

One core 2G1M server can host several enterprise websites

For example, the netizen asked Lao Wei these two questions: a 50G server hard disk, mainly used for product display websites. The content is dominated by pictures, and each website has less than 50 visits with a small number of visitors. There are 10 pictures on the home page, one picture is about 80KB, and there are hundreds of products on a website. Users may not read all of them when they visit. Want to know how many websites can be placed at most without affecting the browsing experience? How to bind domain names to multiple websites? After replying to the questions of netizens, Old Wei summarized and shared them in Weieis' notes, mainly for novices, Xiaobai and friends with little experience in building websites.

 One core 2G1M server can host several enterprise websites
One core 2G1M server can host several enterprise websites

Server Selection

At present, 1-core 2G servers are the mainstream of entry-level servers in China (1-core 1G servers are outdated). For example, Alibaba Cloud and Tencent Cloud's ECS, the main entry model is also 1-core 2G. However, it should be noted that Alibaba Cloud's main shared s6 model is a shared server, while Tencent's ECS is an exclusive server (no sharing), so Tencent's ECS is preferred if conditions permit.

Linux system is recommended for better use experience (Windows system also supports it), and server deployment theme can achieve better access speed and effect.

  • Tencent Cloud Selection Xingxinghai SA2 ECS The entry-level server in is cheap and usable;
  • Alibaba Cloud Click me to check Alibaba Cloud shared s6 activities are cheap and suitable for lightweight services;
  • If you are not satisfied with the above two configurations, please see: Alibaba Cloud Tencent Cloud (All have vouchers, which can be used to save money when paying);

It is recommended to select an entry-level 1-core 2g configuration server, If you don't know how to select the region and configuration, please add Lao Wei's contact information on the right side of the page. Let's study together

Tips: The so-called shared server means that the "chicken" can only be used when the "hen" hyper thread is idle. Anyone can use this hyper thread (not your own exclusive);

The exclusive server is a super thread of the "hen" that belongs to you alone. You don't have to be idle there and others can't use it;

So there is a big difference between sharing and exclusive.

Not that Alibaba Cloud shared s6 is bad, but that the application environment is different. It can be used for lightweight web applications, websites and other businesses. If the number of visitors increases, it may be upgraded to a computing server.

Tencent Cloud Xingxing Sea sa2 does not have the problem of sharing, and it is a server model used by WeChat, QQ, Tencent Conference, Tencent Advertising and other businesses. It is recommended to be the first choice.

Selected explosives area
618 Zhongshenghui Click to view the purchase
Selected preferential activities Click to view the purchase
Tencent Cloud Preferential Products Zone Click to view the purchase
Cross border e-commerce store server Lightweight application server
Tencent Cloud Animal Palu Game Server Click to view the purchase
For more Tencent Cloud content, please see Tencent Cloud

Website program

If you use an enterprise website building program that generates static html files, this configuration server has no major problem with 10 websites, except for the wordpress program.

WordPress program itself is a php dynamic program, which consumes system resources. It is OK to put 3/5 wordpress programs, and not too many plug-ins inside. If every wordpress website has 10 8 plug-ins, it will take up system resources.

Some domestic cms enterprise website building programs can directly generate html static files, and visitors can read them directly faster than pseudo static programs like wordpress.

Home page size

According to the 10 pictures on the first page, each picture is 80KB in size, and with the first page code, it will be 850KB~1M. After compression, it will be several hundred KB (the product picture is too large). This kind of home page is very "fat" and large in size, so it needs to be compressed for "surgery".

Lose weight and speed up the home page

There are many ways to lose weight on the homepage of the website:

1. Compress the front page. Now many PHP programs support compressing the home page. Through nginx compression technology, the size of the home page can be doubled;

2. To compress the image size, use the tinypng website to manually compress it, or use the tinypng plug-in to automatically compress it (the free version has a maximum of 500 images per month). course TinyPNG and WordPress image compression plug-in: Compress JPEG&PNG images

3. 1M bandwidth is a hard injury. According to the current size of the home page, only a few people can access it at the same time. If there is more bandwidth, it will open slowly. If the cost allows, upgrade the bandwidth to 3M, 5M or higher. At the same time, use cdn acceleration. The cost is far lower than the bandwidth and the effect is obvious. If the cost does not allow, only use cdn acceleration. You can save money by using the voucher mentioned above when upgrading bandwidth.

4. If you use the wordpress program to build a website, you can install a cache plug-in. By generating a website cache file, you can reduce the number of times to read the database, which is equivalent to improving the website response speed.

Related content: WP Super Cache Cache Plug in Optimization Setting Process

The difference between Memcached cache and WP Super Cache cache plug-in and how to choose to use them?

What is the difference between the WP Rocket plug-in and the WP Super Cache plug-in?

Detailed Graphic and Text Tutorial of WP Rocket Plug in Installation, Deployment and Settings

Mistaken Ideas and Correct Methods of Installing Memcached on Pagoda Panels

Multiple websites bind domain names

I don't know what kind of website building panel you use. Lao Wei suggested using a visual panel to make it easier to operate. For example, the pagoda panel can be used in [Website] and [Add Site]. You can add several sites with several domain names. Remember to resolve the domain name to the server IP in advance.

Friends who have not installed the pagoda panel, please Click me directly On the pagoda panel official website, remember to register the pagoda official account and bind it to the pagoda panel of your server, so that new users can enjoy the professional version of 0.99 yuan for one month.

Add multiple websites to the pagoda panel How does ECS bind multiple domain names to build multiple websites Just follow the instructions.

Final summary

"Losing weight" for the website is a systematic project, which requires multiple approaches to achieve results. It is not obvious to operate only one or two of the above operation steps.

Like( zero )
Article name: How many enterprise websites can be placed on the 1-core 2G1M server
Article link: https://www.vpsss.net/22679.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.