mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
install: set swappiness to 1 by default
This commit is contained in:
1 parent
e643c40094
commit
6c4bd6c21d
1 file changed
+2
@@ -405,6 +405,8 @@ connect-timeout = 10`);
|
||||
'hydrooj install https://hydro.ac/language-server-0.0.1.tgz',
|
||||
'pm2 restart hydrooj',
|
||||
],
|
||||
'echo "vm.swappiness = 1" >>/etc/sysctl.conf',
|
||||
'sysctl -p',
|
||||
['pm2 install pm2-logrotate', { retry: true }],
|
||||
'pm2 set pm2-logrotate:max_size 64M',
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user