In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to set up the Liunx panel to make full use of server performance, the content is concise and easy to understand, and can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Before creating the site, we need to make some configuration according to our own conditions, which can make the future site more stable!
Preparation: install Linux panel 4.2.x, install Linux toolkit, install LNMP or LAMP environment
Specific optimization setting steps
1. Add scheduled tasks and release memory regularly. It is recommended to set it to release once a day, and the execution time is midnight, such as 3:30.
2. Open the Linux toolbox and add Swap
Recommended values for Swap:
Physical memory Swap
512M 1024M
1GB 1500M
2GB 2048M
4GB 4096M
6GB + 4096m
3. Install the PHP cache extension, and try to use a higher version of PHP according to the requirements of the site to be deployed. In addition, the cache installation recommendations are as follows:
Script cache: choose an installation of xcache or opcache. PHP5.2-5.4.It is recommended to use xcache,PHP5.5 or opcache.
Content cache: if the program supports it, the recommended priority is as follows: redis > apc > memcached > memcache
Note: only one content cache and one script cache are installed, do not install more than one!
4. If the program supports it, try to use imagemagick instead of PHP with GD to improve performance.
5. If the program supports it, try to install fileinfo and exif extensions to improve the performance and security of the site.
6. If you are sure that your program does not need it, try not to install the ZendGuardLoader,ioncube decryption extension
7. If your program does not need PATH_INFO, please close it
8. Recommendations for concurrent adjustment of PHP:
CPU/ memory single site multi-site
1H/512M 20-30 10-20
1H/1G 30-50 20-30
2H/2G 50-80 30-50
2H/4G 60-100 30-50
4H/4G 100-150 30-80
4H/8G 100-200 30-80
6H/6G 100-200 30-80
8H/8G 100-300 50-100
8H/16G 100-300 100-150
16H/16G 100-300 100-150
Note 1: sites vulnerable to CC attacks use the PHP version, try not to set too high concurrency, so as not to kill the server
Note the performance of 2:VPS varies. The above suggestions are for reference only. Please adjust them according to the actual use effect.
Note 3: it is not recommended to set more than 300 concurrency limits, even if your server performance is good enough; if you find that concurrency is not enough, try to optimize the site database cache may be more effective
9. MySQL database version is recommended:
CPU/ main memory database
1H/512M MySQL5.1
1H/1G MySQL5.1/5.5
2H/2G MySQL5.1/5.5
2H/4G MySQL5.5/5.6
4Hmax 4G + MySQL5.5/5.6/5.7
The above is how to set up the Liunx panel to take full advantage of server performance. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.