Update README.md

This commit is contained in:
VirtuBox 2018-04-02 01:50:33 +02:00 committed by GitHub
parent b59056eed3
commit 6783b7f829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -17,14 +17,22 @@ apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get clean
```
sudo apt install haveged curl git unzip zip fail2ban python-pip python-setuptools htop -y
```
**Tweak Kernel sysctl configuration**
**Tweak Kernel sysctl.conf** [sysctl.conf](https://github.com/VirtuBox/ubuntu-nginx-web-server/blob/master/etc/sysctl.conf)
```
wget -O /etc/sysctl.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/sysctl.conf
sysctl -p
echo never > /sys/kernel/mm/transparent_hugepage/enabled
```
**Increase open files limits** : [limits.conf](https://github.com/VirtuBox/ubuntu-nginx-web-server/blob/master/etc/security/limits.conf)
```
wget -O /etc/security/limits.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/security/limits.conf
```
**disable transparent hugepage for redis**
```
echo never > /sys/kernel/mm/transparent_hugepage/enabled
```
----