Nginx? Apache? ?? ? ??? ??? ??? ?? ????? ?????. 1. Nginx? ???? ?? ?? ??? ?? ????? ?????. 2. Apache? ??? ?? ? ??? ??? ??? ????? ?????. ?? ??, ?? ?? ? ?? ??? ???? ??? ?? ??? ?? ?????? ??? ? ????.
??
Nginx? Apache? ?? ?????? ??? ? ? ?? ???? ?????. ??? ?? ?? ? ??? ??? ??? ?? ?? ????? ?????. ?? ???? ? ?? ?????? ????? ???? ??? ??? ?? ??? ??? ??? ?? ??????. ? ??? ??? ?? ?? ????? ?? ??, ?? ?? ? ?? ??? ?? ????.
?? ?? ??
Nginx? Apache? ?? ??? ? ????? ??? ??? ??? ????. Nginx? ??? ? ?? ?? ??? ???? ?? ??? ???? ? ?? ?????. Apache? ???? ??? ??? ???? ??? ?? ? ??? ??? ????? ?????.
Nginx? ?? Igor Sysoev? ?? C10K ??? ???? ?? ???????. ?, ?? ???? 10,000 ?? ?? ??? ???? ??. Apache? ?? ??? ??? ???? ??? ?? Apache Software Foundation?? ?????.
?? ?? ?? ?? ??
nginx? ?? ? ??
NGINX? ??? HTTP ? ??? ??? ???? ????? ??? ? ?? ??? ?????. ?? ??? ???? ?? ???? ???? ????.
http { ?? { 80; server_name example.com; ?? / { ??/var/www/html; ?? index.html index.htm; } } }
? ??? ?? ??? NGINX? ?? 80? ?? example.com ??? ??? ???? ??? ?????.
???? ??? ??
Apache???? Apache HTTP Server? ?? ?? ? ?? ????????. ?? ?? ???? ?? ?? ?? ??? ?????.
<VirtualHost *: 80> ServerName example.com DocumentRoot/var/www/html <????/var/www/html> ?? ???? ??? ?? symlinks multiviews??? ?? ?? ????? ?? ??? ????? </directory> </virtualhost>
? ?? ??? Apache? ?? ???? ???? ?? 80? ???? example.com ??? ??? ???? ??? ?????.
Nginx? ?? ??
Nginx? ??? ??? ??? ? ??? ????? ???? ?? ??? ?? ? ? ? ?????. ?? ??? ??? ? ? ????.
- ??? ?? : Nginx? ??? ??? ?? ?? ?? ? ??? ?????.
- ??? ?? : ? ??? ??? ??? ???? ?? ??? ???? ????.
- ???? ?? ?? : ??? ? ???? ??? ????? Nginx? ?? ??? ???? ?? ?? ??? ?? ? ? ??????.
Apache? ?? ??
Apache? ???? ?? ??? ??? ???? ??? ?????. ?? ??? ??? ? ? ????.
- ????/??? ? : Apache? ??? ???? ?? ???? ?? ??? ?? ????.
- ?? : ? ??? ?? ??? ?? ? ??? ???? ?? ???? ?????.
- ?? ? ??? : Apache? ??? ?? ??? ???? ???? ??? ?? ?? ????? ? ? ????.
??? ?
nginx? ?? ??
nginx? ?? ??? ????? /etc/nginx/nginx.conf
? ????. ?? ?? ?? ??? ????.
http { ?? { 80; server_name example.com; ?? / { ??/var/www/html; ??? index.html; } } }
? ?? ??? ?? 80? ???? example.com ??? ??? ???? ??? ???? /var/www/html
????? ?? ???.
???? ?? ??
Apache? ?? ??? ????? /etc/apache2/apache2.conf
?? /etc/httpd/conf/httpd.conf
? ????. ?? ?? ?? ??? ????.
<VirtualHost *: 80> ServerName example.com DocumentRoot/var/www/html <????/var/www/html> ?? ???? ??? ?? symlinks multiviews??? ?? ?? ????? ?? ??? ????? </directory> </virtualhost>
? ?? ??? ?? 80? ?? example.com ??? ??? ???? ?? ???? ???? /var/www/html
????? ?? ???.
Nginx? ?? ??
NGINX? ?? ???? ? ?? ??? ???? ?????. ??? ??? ???? ?? ?? ?????.
http { ?? ??? { Server Backend1.example.com; Server Backend2.example.com; } ?? { 80; server_name example.com; ?? / { proxy_pass http : // ???; proxy_set_header ??? $ ???; proxy_set_header xeal-ip $ remote_addr; } } }
? ?? ??? Nginx? ??? ???? ???? ??? ??? ??? ???? ??? ?????.
Apache? ?? ??
Apache? ?? ???? mod_rewrite ??? ??? URL ? ??? ?????. ??? URL ? ??? ?? ?? ?????.
<VirtualHost *: 80> ServerName example.com DocumentRoot/var/www/html rewriteEngine on rewriterule ^Old-Page \ .html $ new-page.html [r = 301, l] </virtualhost>
? ?? ??? Apache? mod_rewrite ??? ???? ?? ???? ? ???? ?????? ??? ?????.
???? ?? ? ??? ?
???? NGINX ??
- ?? ?? ?? ?? : Nginx? ??? ???? ???? ????????.
nginx -t
??? ???? ?? ??? ??? ???????. - ?? ?? : Nginx? ??? ?? ? ????? ??? ? ??? ??? ??? ??????.
chown
?chmod
??? ???? ??? ??????.
???? ??? ??
- ?? ?? ?? ?? : Apache? ??? ???? ???? ????????.
apachectl configtest
??? ???? ?? ??? ??? ???????. - ???? ?? : ??? ?? ??? ?????????? ??????.
a2enmod
?a2dismod
??? ???? ??? ??????.
?? ??? ? ?? ??
Nginx ?? ???
Nginx? ?? ???? ?? ?? ??? ??? ???.
- ??? ???? ? ?? : ??? CPU ?? ?? ?? ??? ???? ?? ???? ????? CPU ?? ?? ? ?? ?????.
Worker_Processes Auto;
- ?? ??? : Nginx? ?? ??? ???? ??? ?? ?? ? ? ????.
proxy_cache_path/var/cache/nginx ?? = 1 : 2 Keys_zone = my_cache : 10M max_size = 10g ??? = 60m;
- ?? ?? ?? ?? ?? : ???? ?? ??? ??? ?? ?? ??? ?? ?? ?? ?? ??? ??????.
http { Keepalive_timeout 65; cheepalive_requests 100; }
??? ?? ???
Apache? ?? ???? ?? ?? ??? ??? ???.
- MPM ?? ?? : ?? ?? ??? ????? ??
worker
??event
? ?? ??? ?? ???? ?? (MPM)? ??????.
<ifmodule mpm_worker_module> Startservers 2 Minsparethreads 25 Maxsparethreads 75 ThreadLimit 64 ThreadSperchild 25 MaxRequestWorkers 400 MaxConnectionsperchild 10000 </ifmodule>
- ?? ??? :
mod_cache
? ?? Apache? ?? ??? ???? ??? ??????.
<ifmodule mod_cache.c> ??? ??? / Cacheroot/var/cache/apache2 ?? ? ?? 2 ?? ? ?? 1 </ifmodule>
- ?? ?? ?? ?? ?? : ???? ?? ??? ??? ?? ?? ??? ?? ?? ?? ?? ??? ??????.
<ifmodule mod_reqtimeout.c> requestReadTimeout ?? = 20-40, minrate = 500 body = 20, minrate = 500 </ifmodule>
?? ??
- ???? ? ?? ?? : Nginx ?? Apache? ???? ????? ?? ??? ?????? ??? ???? ??? ??? ???? ???????.
- ?? ?? : ?? ??? ?????? ???? ?????? ????? ?????? ?? ?? ??? ?????.
- ?? ? ?? : ??? ?? ??? ???? ?? ?? ?? ? ???? ????? ?????.
??? ? ???? ??
Nginx ? Apache? ??? ? ??? ?? ??? ???????.
- ??? ?? ?? : ??????? ?? ?? ??? ?? ???? ?? ??? ? ??? ????? ?? ?? ?????? ? ???? ??? NGINX? ? ?? ? ? ????.
- ?? ?? ?? : ?? ????? ??? ??? ??? ??? ??? ?? ?? ? ??? ??? ???? ??? ??? ??? ???? ? ?? ??? Apache? ? ?? ? ? ????.
- ?? ?? : Nginx? ????? Apache?? ??? ??? ? ??? ?? ???? ???? Nginx? ? ?? ?? ? ? ????.
???? ??? ????
- NGINX ?? ??? : NGINX ?? ??? ??? ????? ???? ??? ??? ??? ???? ?? ?? ??? ???? ????? ??? ? ????. ?? ?? ?? ?? ? ?? ?? ??? ???? ???? ??? ????? ?? ????.
- Apache Performance ?? ?? : Apache? ?? Prefork MPM? ??? ? ?? ??? ?????? ?? ?? ??? ?? ? ????. ?? ??? ?? ??? MPM ??? ???? ?? ??? ???? ?? ????.
- ?? ?? : Nginx ?? Apache? ???? ?? ?????? ???????. ???? ?? ???? ?????? ?? ?????, ?? ?? ? ?? ??? ?????. ?????? ????? ?????? ?? ?? ??? ??? ??? ? ?? ??? ???? ?? ????.
?? ?? ? ??? ?? Nginx ? Apache? ??? ??? ? ? ???? ??? ??? ?? ?? ??? ? ?? ?????? ??? ? ??? ????.
? ??? nginx? apache ??? ?? : ??? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











PHP ??? ?? ?? ???? ??? ? ????. 1. ?? ?? ???? "PHP ?? ??"? ?? ???? ????? ?????. 2. ??? ?? ?? ????? ?? ? ??? ?? ????? ?? ???????. 3. IDE?? ???? ?? ??? ??? ??????. 4. ??? PHP ?? ?? ?? ?? ?? ???? ???? ???????.

Phpstudy? Joomla ? ???? ???? ???? ??? ?????. 1) Phpstudy ??, Apache ? MySQL ???? ???? PHP ?? ???? ??????. 2) ?? Joomla ? ????? Phpstudy? ? ????? Phpstudy ? ???? ?????? ?? ?? ? ?? ?? ???? ?? ????? ?? ??? ?????. 3) ? ??? ?? ?? ? ??? ??? ?? ?? ??? ????.

Debian ????? Tomcat ?? ?????? ????? ?? ????? ?????. ???? ??? ???? ?? ?? Tomcat ??? ?? ??? ??????. ???? /opt /tomcat ?? ? Server.xml, context.xml ? web.xml? ?? ?? ?? ??? ?????. ?? ??? ?? ??? ?? ?? ? ? ????. SEDOCP-R/OPT/OPT/OPT/TOMCAT_BACKUP ? ?? Tomcat GET TOMCAT APACHETOMCAT? ?? ? ???? ???? ?? ??? ????????. ??? ??? ???? ???

Nginx? ?? ?? ??? ?? ??? ???? ?? ? ??? ????? ???? ? ???? ??? ?? ?????. 1) ?? ?? ??? ????? /etc/nginx/nginx.conf???. ??? nginx-t ??? ???? ??? ??? ? ? ????. 2) ?? ???? ?? ?? (? : ???, Worker_Processes) ? HTTP ?? (? : log_format)? ?????. ??? ??? ?? ??? ?? ??? ?? ? ??? ?????. ??? ???? ?? ?? ??? ?? ???? ??? ? ????.

Apache ???? ??? ? ??? ??? ???? ??? ?? ???? ?? ??? ??, ?? ??? ?? ???, ????? ????? ?? ??? ??, ???? ?? ?? ? ?? ??? ?? ?? ??? ? ????. ?? Apache? ???? ?? ?? ??? ? ????? ??? ??????. ??, ?? ??? ?? ?????? ???? ?? ???? ??? ??? ?? ???? ?????. ??, ???? ??? ?? ? CPU??? ???? ????? ????? ?????. ?? ?? NetStat ?? SS ??? ???? ???? ?? ????? ?? ???? ??? ???? ???????. ?????, ??? ??? ???? ??? ?? ? ??? ?? ??? ?? ??? ??????.

Apache? ???? ?? ?? ?? ??? ???? ?? ?? ??, ?? ?? ? ?? ????? ?????. ???? ??? ????. 1. ??? ??? ?? : sudosystemctlstoppapache2; 2. Apache ????? ???? ?????? : Sudorm-rf/etc/apache2/usr/sbin/apache2; 3. LSOF? ???? ??? ??? ??? ?? ?????. Sudolsof | Grepapache2, Sudokill-9; 4. ??? ?? ??????.

MySQL ??????? ????? Apache ?? ?? ??? ?????. 1. Apache ? MySQL? ???? ??? ??????. 2. httpd.conf ?? apache2.conf? loadmodule ? addhandler ???? ???? PHP? ?????? Apache ??; 3. MySQL? ????? PHP ??, php.ini?? mySQLI ??? ??????. 4. ??? PHP ??? ???? ???????. ??? ??? ?? Apache? MySQL ?? ??? ????? ??? ? ????.

MacOS?? Apache ???? ????? ??? sudoapachecectlstart?? ?? ???/etc/apache2/? ????. ?? ??? ??? ????. 1. httpd.conf ?? ??, Listen8080? ?? ?? ?? ??; 2./users/your_username/sites? ?? ?? ????? ?? ?? ??? ???? ?? ?? ??? ????????. 3. SudoapaceCectLgraceful ??? ???? Apache? ?? ???? ??? ?????????. 4. MOD_DEFLATE ??? ???? ???? ??? ?? ??? ??????.
