Example Tuning
Различия
Здесь показаны различия между двумя версиями данной страницы.
Следующая версия | Предыдущая версия | ||
example:example_tuning [20.04.2017 07:48] admin создано |
example:example_tuning [20.05.2019 15:18] (текущий) |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | #linux #selinux ### отключить selinux | + | <code bash> |
- | #linux #selinux echo 0 > /selinux/enforce | + | |
- | #linux #selinux vi /etc/selinux/config | + | |
- | #linux #selinux SELINUX=disabled | + | |
- | #linux #selinux SELINUXTYPE=targeted | + | |
- | #linux #selinux SETLOCALDEFS=0 | + | |
- | #linux | + | |
- | #linux #tuning ### оптимизация и тюнинг | + | |
- | #linux #tuning vi /etc/resolv.conf | + | |
- | #linux #tuning nameserver 10.90.1.3 | + | |
- | #linux #tuning nameserver 8.8.8.8 | + | |
- | #linux #tuning options single-request | + | |
- | #linux #tuning sudo apt-get install nscd && sudo service nscd restart | + | |
- | #linux #tuning yum -y install nscd && service nscd restart; grep single-request /etc/resolv.conf || echo -e '\noptions single-request' >>/etc/resolv.conf ### Кеширование dns и не только | + | |
+ | # кеширование и ускорение dns passwd groups services protocols ###linux ###tuning ###cache | ||
+ | vi /etc/resolv.conf | ||
+ | nameserver 192.168.1.1 | ||
+ | nameserver 8.8.8.8 | ||
+ | options single-request | ||
+ | # end vi | ||
+ | sudo apt-get install nscd || yum -y install nscd | ||
+ | sudo service nscd restart | ||
+ | grep single-request /etc/resolv.conf || echo -e '\noptions single-request' >>/etc/resolv.conf | ||
+ | </code> | ||
+ | ~~OWNERAPPROVE~~ | ||