Home > Topics > Pagoda Panel > body text

How to set up the Pagoda Liunx panel to make full use of server performance

藏色散人
Release: 2020-10-27 13:58:50
forward
2453 people have browsed it

The following is the PagodaPanel tutorial column to introduce to you PagodaLiunxPanel settings can make full use of server performance, I hope it will be helpful to friends in need !

How to set up the Pagoda Liunx panel to make full use of server performance

Before creating the site, we need to make some configurations according to our own conditions, which can make the future site run more stable!

Preliminary preparation: Install Pagoda Linux panel 4.2.x, install Linux toolbox, install LNMP or LAMP environment

Specific optimization setting steps

1. Add scheduled tasks, regularly To release memory, it is recommended to release it once a day, and the execution time is midnight, such as: 3:30

2. Open the Linux toolbox and add Swap

Swap recommended value:

physical memory 4096M

6GB 4096M

3. Install the PHP cache extension. According to the needs of the site to be deployed, try to use a higher PHP version. In addition, the cache installation recommendations are as follows:

Script cache: xcache, opcache, choose any one to install. It is recommended to use xcache for PHP5.2-5.4, and opcache

is recommended for PHP5.5 and above. Content caching: If the program supports it, the recommended priority order is as follows: redis > apc > memcached > memcache

Note: Only install one content cache and script cache each, do not install multiple!

4. If the program supports it, try to use imagemagick instead of PHP’s own GD to improve performance

5 . If the program supports it, try to install fileinfo and exif extensions to improve site performance and security

6. If you are sure that your program does not need it, try not to install ZendGuardLoader and ioncube decryption extension

7 , If your program does not need PATH_INFO, please turn it off

8. PHP concurrency adjustment suggestions:

CPU/Memory Single site Multisite

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                                                                                                                                                                                                                   0-300 100-150

Note 1: For the PHP version used by sites that are vulnerable to CC attacks, try not to set too high concurrency to avoid the server being killed

Note 2: VPS performance is uneven, the above suggestions are for reference only, please Adjust according to the actual use effect

Note 3: It is not recommended to set the concurrency limit exceeding 300, even if your server performance is good enough; if you find that the concurrency is not enough, please try to optimize the site database cache, which may be more effective

9. MySQL database version recommendation:

CPU/Memory Database

1H/512M MySQL5.1

1H/1G MySQL5.1/5.5

2H/2G                                                                                                                MySQL           

The above is the detailed content of How to set up the Pagoda Liunx panel to make full use of server performance. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:bt.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!