Last update at :2024-07-11,Edit by888u
Currently, among the cloud server/VPS hosting merchants in mainland China, we see that most of the bandwidth of mainland computer rooms, Hong Kong computer rooms, and other Asian computer rooms starts at 1M, and some can see 2M or 3M. Anyway, most netizens will think that this bandwidth configuration is basically useless when they see the basic configuration starting with 1M bandwidth (especially Alibaba Cloud and Tencent Cloud).
If the 1M server we purchased is used for downloading or other high-speed requirements, it will definitely be a bit difficult, but if it is used to build a website, if you can make full use of the server configuration and bandwidth, your website will be at least It is no problem to have several thousand IP visits a day. Snail saw a netizen's website before. After upgrading from 1M to 5M, the speed did not improve. Finally, I found that it uses a quite complex website theme, and many files are called externally. Even if you upgrade to 10M, there is not much improvement. .
So, when we are building a website, when choosing a server, especially for new websites, we estimate our own budget and subsequent website development. Most users can actually start from the basic configuration. Then fully optimize the performance of the website and server, and then make full use of the existing default configuration. After reaching the bottleneck, we will upgrade the configuration. So how do we optimize website speed?
First, choose a website theme
It is indeed very simple to build a website nowadays. Even if you don’t have internet building skills or don’t know the front-end, you can still build a website by directly installing the CMS program, and then looking for free or paid theme templates to quickly build a website. In particular, some webmasters like to make their websites very colorful and dynamic. In fact, this snail also did this in the early years. They would add various special effects to the website, which was indeed very popular at that time.
We choose website themes to be as concise and practical as possible, but if the functions are too complex and the backend is too powerful, it will cause more trouble for ourselves, and of course it will take up more resources. Especially for my personal website, as long as you can record and write content, users will not care how complicated the functions of your website are. We have seen some ugly websites, but their profitability is indeed quite amazing.
Second, you need to be careful when choosing overseas themes
For example, for our commonly used WordPress themes, there are indeed not many WP free themes currently available in mainland China. Even the paid themes are mostly bound to domain names. For foreign countries, there are many free WP themes or paid themes, and they will not be bound to a domain name. However, when we choose, we will find that overseas WordPress themes are more complicated.
Many times these themes are too "excellent" and are not particularly suitable for us. Even if you want to use them, we must check the files being called, especially external files. Snail saw a good theme before and was ready to use it, but I saw nearly 20 JS files in use.
Third, separate management of static resources
We see that many cloud server providers now provide static cloud storage services. In the past, we saw not many businesses, which were basically used for cloud disks or shared files. Now many of us are beginning to provide Separate static resources of your own website. For example, we can throw website images or downloaded files into cloud storage, which can alleviate website bandwidth pressure. If our cloud server itself is used to display text content and call images to cloud storage, the speed will indeed be greatly improved.
If we use the WordPress program, we can refer to "Using the WPCOS plug-in to implement WordPress upload images and saving them separately to Tencent Cloud COS object storage" and "WPOSS plug-in to implement separating WordPress images to Alibaba Cloud OSS object storage" \\" separates the static files of the website. Or we can also use other plug-ins or other drawing methods.
Fourth, CDN acceleration is not a panacea
A few days ago, some netizens asked Snail why his website was so slow, so I saw that he uses a cloud server with 1M bandwidth in mainland China, but his CDN acceleration uses CF. This student’s own website is located in mainland China, so the speed should be okay. If you add CDN acceleration from foreign nodes, your speed will definitely be slower than without CDN.
This student’s explanation is that CDN acceleration in mainland China is billed based on traffic, so you can save money by using a free foreign one. I told him directly that not only can you save money by not using CF, but it is also faster. If you really need it in the future, you can use the CDN acceleration provided by merchants in mainland China.
Fifth, necessary cache plug-ins and server cache support
Nowadays, our server configuration will use one-click installation package panels and scripts. Generally, these scripts will have some caching tools. For example, if necessary, we should use memcached, memcache, opcache, redis, etc. to provide acceleration and caching mechanisms for server operations. At the same time, the programs we are using also have caching or static plug-ins, which can improve the speed of the website to a certain extent.
Don’t install too many plug-ins, just the necessary ones. Even if some functions need to be implemented, see if you can use manual script modification instead of using plug-ins for faster speed.
In short, even if we choose a 1M bandwidth cloud server or VPS host, it is completely sufficient for the initial website stage. The premise is that we need to be patient and optimize the website and server. Sometimes blindly increasing configurations may not necessarily achieve good results.
Recommended site search: How to rent a server, Hong Kong server hosting, registered domain name, asp website space, Wanwang space, Hong Kong server hosting, Korean independent server, Chinese agent IP, US server rental, shopex virtual host,
发表评论