http://nginx.org/en/linux_packages.html#mainline
Set limits
/lib/systemd/system/nginx.service
[Service]
...
LimitNOFILE=265536
LimitMEMLOCK=65536
https://www.dotdeb.org/instructions/
https://packages.sury.org/php/README.txt
apt-get install php7.1-fpm
https://www.percona.com/doc/percona-server/5.7/installation/apt_repo.html
Set limits
/lib/systemd/system/mysql.service
[Service]
...
LimitNOFILE=65536
LimitMEMLOCK=65536
systemctl daemon-reload
service mysql restart
systemctl stop rpcbind.service
systemctl disable rpcbind.service
NTP to ip4 /etc/default/ntp
NTPD_OPTS='-4 -g'
Config
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst
restrict -4 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
interface ignore wildcard
interface listen 127.0.0.1
interface listen <ip>
apt-get install iptables-persistent
ntpdate -u pool.ntp.org
dpkg-reconfigure tzdata
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/bin --filename=composer
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn