diff --git a/8.Cache/1.Install_cache/0_setup.py b/8.Cache/1.Install_cache/0_setup.py index 471b8c8c64671b28013094dc4a3f3fe71d1f253d..453fc3046394d2375213f4b663819184e22d085f 100644 --- a/8.Cache/1.Install_cache/0_setup.py +++ b/8.Cache/1.Install_cache/0_setup.py @@ -8,5 +8,6 @@ def setup(interactive=True): cmds = [ 'mkdir -p /var/www/cache', 'cp %s/index.html /var/www/cache/index.html' % dir_path, + 'cp %s/nginx-limits.conf /etc/security/limits.d/nginx.conf' % dir_path, ] utils.run_commands(cmds) diff --git a/8.Cache/1.Install_cache/nginx-limits.conf b/8.Cache/1.Install_cache/nginx-limits.conf new file mode 100644 index 0000000000000000000000000000000000000000..d0f364748b45e21ec925dad7a429d6b23367763c --- /dev/null +++ b/8.Cache/1.Install_cache/nginx-limits.conf @@ -0,0 +1,2 @@ +nginx soft nofile 20000 +nginx hard nofile 40000