mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
更新docker配置
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
; 内存不限制
|
|
||||||
memory_limit = -1
|
|
||||||
|
|
||||||
; 上传文件大小不限制
|
|
||||||
upload_max_filesize = -1
|
|
||||||
|
|
||||||
; 运行时长不限制
|
|
||||||
max_execution_time = 0
|
|
||||||
|
|
||||||
; POST大小不限制
|
|
||||||
post_max_size = -1
|
|
||||||
|
|
||||||
; 进程数不限制
|
|
||||||
pm = dynamic
|
|
||||||
pm.max_children = 150
|
|
||||||
pm.start_servers = 10
|
|
||||||
pm.min_spare_servers = 10
|
|
||||||
pm.max_spare_servers = 30
|
|
||||||
@@ -5,7 +5,9 @@ cp /var/www/html/docker/nginx.conf /etc/nginx/sites-available/default
|
|||||||
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
# 将代码中的php配置文件复制到php配置文件中
|
# 将代码中的php配置文件复制到php配置文件中
|
||||||
cp /var/www/html/docker/phprun.ini /usr/local/etc/php/conf.d
|
cp /var/www/html/docker/zz-phprun.ini /usr/local/etc/php/conf.d
|
||||||
|
cp /var/www/html/docker/zz-phpfpm.conf /usr/local/etc/php-fpm.d
|
||||||
|
|
||||||
|
|
||||||
# 运行redis
|
# 运行redis
|
||||||
nohup redis-server --requirepass "" &
|
nohup redis-server --requirepass "" &
|
||||||
|
|||||||
8
docker/zz-phpfpm.conf
Normal file
8
docker/zz-phpfpm.conf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
[www]
|
||||||
|
; 进程数不限制
|
||||||
|
pm = dynamic
|
||||||
|
pm.max_children = 150
|
||||||
|
pm.start_servers = 10
|
||||||
|
pm.min_spare_servers = 10
|
||||||
|
pm.max_spare_servers = 30
|
||||||
24
docker/zz-phprun.ini
Normal file
24
docker/zz-phprun.ini
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
; 内存不限制
|
||||||
|
memory_limit = -1
|
||||||
|
|
||||||
|
; 上传文件大小不限制
|
||||||
|
upload_max_filesize = -1
|
||||||
|
|
||||||
|
; 运行时长不限制
|
||||||
|
max_execution_time = 0
|
||||||
|
|
||||||
|
; POST大小不限制
|
||||||
|
post_max_size = -1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[Zend Opcache]
|
||||||
|
opcache.enable = 1
|
||||||
|
opcache.memory_consumption=128
|
||||||
|
opcache.interned_strings_buffer=32
|
||||||
|
opcache.max_accelerated_files=80000
|
||||||
|
opcache.revalidate_freq=3
|
||||||
|
opcache.fast_shutdown=1
|
||||||
|
opcache.enable_cli=1
|
||||||
|
opcache.jit_buffer_size=128m
|
||||||
|
opcache.jit=1205
|
||||||
Reference in New Issue
Block a user