This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== | |
LINUX | |
===== | |
apt-get update | |
apt-get upgrade | |
apt-cache search apache2 | |
apt-cache policy apache2 - show available versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swap space (https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04) | |
---------- | |
fallocate -l 1G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
nano /etc/fstab | |
... | |
/swapfile none swap sw 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RFC (Request for Comments; Приглашение к обсуждению) - документы, которые рассматриваются как стандарты Интернета (о протоколах и технологиях). | |
# Сетевая модель OSI (Open Systems Interconnection Model; Модель взаимодействия открытых систем) | |
Модель сетевых протоколов, определяющая уровни взаимодействия систем. Стек слоев (построены поверх друг друга): | |
7. Прикладной (Application), данные: DNS, HTTP, SMTP... | |
6. Представления (Presentation), данные: ASCII, JPEG... | |
5. Сеансовый (Session), данные: RPC... | |
4. Транспортный (Transport), сегменты/дейтаграммы: TCP (Transmission Control Protocol), UDP... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name api.restfulboilerplate.local; | |
root /srv/www/symfony-react-restful-boilerplate/api/public; | |
location / { | |
# try to serve file directly, fallback to index.php | |
try_files $uri /index.php$is_args$args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name magento.olegbelostotsky.com; | |
root /srv/www/magento.olegbelostotsky.com; | |
location / { | |
index index.html index.php; | |
try_files $uri $uri/ @handler; | |
expires max; |