Looking for the misty rain and the world of mortals, and thinking about poetry and painting in the south of the Yangtze River

[Server] Pagoda Liunx panel makes full use of server performance settings


Pagoda Linux panel installation requirements

Python version: 2.6/2.7 (installed automatically when installing the pagoda)

Memory: 128M or more, 512M or more is recommended (pure panel accounts for about 10M of system memory)

Hard disk: More than 100M of available hard disk space (pure panel occupies about 20M of disk space)

System: CentOS 6. x/7. x (also supported by Ubuntu, Debian and Fedora), ensure that the operating system is clean, and no Apache/Nginx installed in other environments/ php /MySQL

It is necessary to open the server port


[服务器]宝塔Liunx面板充分利用服务器性能设置 建站推荐

Before creating a site, we need to make some configurations according to our own conditions, which can make the site run more stably in the future.

Preliminary preparation: install the pagoda Linux panel, install the Linux toolbox, and install the LNMP or LAMP environment.

The specific optimization setting steps are as follows:

1. Add scheduled tasks to release memory on a regular basis. It is recommended to release memory once a day. The best time for execution is midnight, such as 3:33

2. Open the Linux toolbox to add Swap, and set the recommended values of Swap as follows:

Physical memory Swap size
512M 1024M
1GB 1500M
2GB 2048M
4GB 4096M
6GB+ 4096M


3. Installation PHP Cache expansion, try to use higher PHP Version, and the cache installation recommendations are as follows:

Script cache: install either xcache or opcache, PHP 5.2 to PHP 5.4. It is recommended to use xcache, PHP 5.5 It is recommended to use opcache above

Content caching: If the program supports it, the recommended priority is as follows: redis>apc>memcached>memcache

(Note: Only one content cache and one script cache should be installed, not more than one!)

4. If the program supports it, try to use imagemagick instead PHP With 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 it is determined 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 close it

8、 PHP Concurrent adjustment suggestions:

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

Used by sites vulnerable to CC attacks PHP Version. Try not to set too high concurrency to prevent the server from being killed.

VPS performance is uneven, the above suggestions are for reference only, please adjust according to the actual use effect.

It is not recommended to set the concurrency limit beyond 300, even if the server performance is good enough; If you find that the concurrency is not enough, try to optimize the site database cache.


9. MySQL database version recommendations:

CPU/memory database
1H/512M             MySQL5.1
1H/1G                 MySQL5.1/5.5
2H/2G                 MySQL5.1/5.5
2H/4G                 MySQL5.5/5.6
4H/4G+              MySQL5.5/5.6/5.7

(This article is from the pagoda official website)

Title: [Server] Pagoda Liunx panel makes full use of server performance settings
Author authorization: Unless otherwise specified, this document is written by Intoxicated with Chinese style Original compilation and authorization Intoxicated with Chinese style blog Publication.
Copyright notice: This article uses the "Signature Sharing 4.0 International in the Same Way" Creative Sharing Agreement. Please follow the signature agreement when reprinting or using.
Comment List (2) Comments
 Netizen nickname: Hu Junjie
Hu Junjie tourist 2018-01-14 reply
Since I used the pagoda last time, I have become a pagoda controller inexplicably...
 Netizen nickname: Intoxicated with Chinese style
Intoxicated with Chinese style administrators 2018-01-14 reply
@Intoxicated with Chinese style Nothing is more simple and rude than this, of course

Comment