1. Nginx ??? ??? ??????. ???? SystemCTL ??? SystemD? ?????. ???? ??? ? ??? ?????. inactivedead? ?? ????. ??? ???? ?? ?? ?????. 2. ?? ???? ??? ??? ???? ????? STARTSTOPRESTART? ???? ???? ?? ? ? ????. 3. Netstat ?? SS ??? ?? 80443 ??? ??????? ??????. ??? ??? ??? ??? ????? ??? ??? ?? ? ? ????. 4. Tailfvarlognginx ErrorLog ??? ???? ??? ?? ??? ?????. ???? ?? ??? ???? ?? ?? ?? ?? ? ?? ??? ??? ? ????.
Nginx ??? ??? ???? ??? ??? ?? ?????. ??? ???? ??? ?? ??? ?? ????. ???? ?? NGINX? ??? ??? ??? (? : SystemD ?? ??? Init ???)? ?? ?????.
SystemCTL? ???? nginx ??????? (SystemD Systems? ??)
??? SystemD? ???? ?? (?? ???? Linux ??? ????? ???? ??) ?? ??? ? ????.
SystemCtl ?? nginx
? ??? Nginx? ?? ?? ???, ?????? ?? ??? ??? ?????. ???? ???? ?? ??????? ??? ??? ???? ? ?? ??? ????? ??? ?????.
???? ?? :
-
active (running)
????? ?? ??? ?????. -
inactive (dead)
??? ???? ???? ?? ?? ?????. - "
Failed
"?? ??? ????? ???? ??? ?? ??? ???????.
?? : ??? ?? ? ??? nginx -t
???? ?? ??? ?? ??? ??? ??? ? ?? ????. ? ??? ??? ???? ?? ? ??? ? ? ????.
??? ?? ?? (Init System ?)
Centos 6 ?? Ubuntu 14.04? ?? ?? ?? ?????? Sysvinit Management Services? ??? ??? ? ????. ??? ??? ? ???? :
??? nginx ??
?? ??? ??? ???? ????? Nginx? ?? ??? ?????. ???? ??? ???? ??? ? ????.
- ?? :
service nginx start
- ?? :
service nginx stop
- ?? ?? :
service nginx restart
?? :? ????? ??? ?? ??? ????. ????? /var/log/nginx/error.log
? ????? ? nginx? ?? ??? ?? ?? ?? ????.
NGINX? ?? 80/443? ????? ?? ? ??????
??? ???? ???? ??? ???? ? ???? ? ?? ????. ??? ?? ?? ??? ? ????. ?? ??? ???? ??? ? ? ????.
netstat -tuln | grep ': 80 \ | : 443'
?? ss
??? ??????.
ss -tuln | grep ': 80 \ | : 443'
??? ??? Nginx? ??? ??? ????? ???? ?????. ???? ??? ??? ????.
- ???? ?? ?? ??? ?? ??? ???? ???? ?????.
- Apache ?? ?? ? ???? ??? ?????
- ??? ??? ?? (???? ?? ? ?? ?? ?)
Nginx ?? ?? ?? ?? ????
?? ??? ??? ??? ????? ???? ??? ? ? ??? ?? ??? ?? ? ? ????. ??? ????? ??? ????.
?? -f /var/log/nginx/error.log
? ??? ??? ??? ?? ??? ???? ?? ??, ?? ??, ?? ?? ?? ?? ?? ???? ?????.
?? ??, nginx.conf
?? ? ?? systemctl reload nginx
???? ?? ??? ?? ?? ??? ?? ????? ???? ? ? ????.
????? ??? ??. ?? ??? ??? ?? ???? ???? ??? ???? ?? ? ?? ??? ????? ???? ? ???? ??? ??? ? ????.
? ??? Nginx ???? ??? ???? ??? ??????? ?? ?????. ??? ??? 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)

GZIP ??? ????? ? ??? ??? ??? ????? ????? ??? ???? ? ????. 1. Apache ??? .htaccess ??? ??? ???? mod_deflate ??? ????? ??? ???????. 2.nginx? ??? ?? ??? ???? Gzipon? ???? ?? ??, ?? ?? ? ?? ??? ???????. 3. ??? ??? ? ??? ?? ?? ???? ??? ??? ?? ??? ??? ??? ? ????. ???? ?? ??? ???? ?? ?? ?? ?? ?? ?? ? MIME ?? ??????????.

stub_status ??? nginx? ??? ?? ?? ??? ?????. ?????, ???? ??? ?????. 1. ?? ?? ??? ?; 2. ?? ? ??? ? ?, ? ?? ?? ? ? ? ?? ?; 3. ??, ???? ???? ?? ?. ??? ??? ????? Nginx-V ??? ??-with-http_status_module ?? ??? ????? ??? ? ????. ????? ?? ?? ??? ?? ????? ??????. ????? ?? ??? ?? ??? ???? ??? ??? ???????. ?????, ??? ??? ?? Nginx ???? ?????? ?? ???? ???????. ???? ??? ?? ???? ?? ????. ??? ?? ???? ????? ??? ? ??? ??? ? ???? ???? ?? ? ? ????.

HSTS? ????? ??? HTTPS ? ????? Strict-Transport-Security ?? ??? ???? ????. ?? ??? ??? ????. 1.nginx ?? ??? Add_header ???? ?????. 2. Apache? ?? ?? ?? .htaccess? ?? ???? ?????. 3.iis? web.config? ??? ??? ?????. ? ???? HTTPS? ??? ???? ?? ???? ?? ?? (?? ??), ?? ? ??? (?? ???? ???), ?? ?? (?? ??) ? Prereload? HSTSpreload ??? ?????? ?? ?????.

A/B ???? NGINX? Split_Clients ??? ?? ?? ? ? ???, ?? ??? ?? ??? ?? ?? ??? ?? ??? ???? ?????. ?? ??? ??? ????. 1. Split_Clients ??? ???? 50%A ? 50%B? ?? HTTP ??? ??? ? ??? ?????. 2. $ cookie_jsessionid, $ remote_addr ?? $ arg_uid? ?? ??? ?? ?? ???? ??? ???? ??? ??? ????? ?????????. 3. ?? ?? ?? ??? IF ??? ?? ?? ???? ??????. 4. ??? ?? ?? ??? ?? ??? ??? ???? ??? ?????. 5. ???? ??? ? ??? ?? ??

nginx ??? ??? ?? ??? /var/log/nginx/access.log?? ?? ??? ?? ??? /var/log/nginx/error.log??? ?? ???? ?? ??? ??? ? ????. 1. ??? ????? IP, ?? ??, URL, ?? ?? ? ?? ??? Access_Log ???? ?? ?????. 2. ?? ?? ?? ?? ?? (?? ?? ?? ?? ??? ?? ?? ??? Error_Log ???? ?? ???? ?? ??? ??? ? ????. 3. ?? ??? ???? ?? ?? Nginx-T? ?? ?? ?? ????? Access_Log ? Error_Log ???? ???? ??? ???? ??? ??? ? ????.

Nginx ???? ?? ?? ?? @ ??? ??? ??? ??? ???? ? ?????. ??? ????? ???? ?? ????? ????? ??? ?? ?? ? ? ????. ????? error_page, try_files ?? ?? ?? ???? ?? ?????. 1. ?? ?? ??? @? ?????. ?? ??, ??@notfound? ?? ??? ???? ??? ?? ?? ???? ??????. 2. ??? ?? ??? ?? ?? ??, ?? ??? ? ??? ???? ??? ?????. 3. ?? ??, try_files? ???? ?? ??? ???? ?? ? @backend? ?????. 4. ?? ???? ??? ?????. ?? ????? ??, ?? ??? ??? ?? ??? ?????. ??? ??? ???? ??? ? ????

Nginx? SSL/TLS ???? ????? ???? ?? ?? ???? ServerBlock?? ?? ?? ??? ???????. 1. ??? ?? ?? : .crt ?? .pem ?? ? ?? .key ?? ?? ???? ????. let 'sencrypt ?? ??? ??? ?????? ???? ?? ???? ?? ??? ?? ? ? ????. 2. ServerBlock? ?????? : Listen443SSL, ssl_certificate ??? /etc/ssl/example.com.crt? ??????.

TOSETUPANNGINXSERVERBLOCK, FIRSTANDISTITSTRSTRUCTUREUSINGSTERTIPTIONSTIPTINTSLIKELISTEN, SERVER_NAME, andlocation; ??, CreateAdirectoryStructureForyOUrsitesuchas/var/examplectermissions;
