?? 1: ?? ??
? ??? ?? ?? ??? ??? ?????.
Prometheus ??? ??? ? ?? ??
?? ??? ??? ? ??? ?????. ???? ???? "??????"
sudo?groupadd?--system?prometheus
sudo?useradd?-s?/sbin/nologin?--system?-g?prometheus?prometheus
Redis ???? ???? ? ??
???? GitHub? Redis ???? ?? ???, ?? ????? ??? ?????? ????? /usr/local/bin/?? ????. ???????.
curl?-s?https://api.github.com/repos/oliver006/redis_exporter/releases/latest?|?grep?browser_download_url?|?grep?linux-amd64?|?cut?-d?'"'?-f?4?|?wget?-qi?-
tar?xvf?redis_exporter-*.linux-amd64.tar.gz
sudo?mv?redis_exporter-*.linux-amd64/redis_exporter?/usr/local/bin/
Redis ???? ?? ??
redis_exporter?--version
?? ??? ??? ????.
Redis ????? systemd ??? ??
Redis ????? ???? ?? systemd ??? ?? ??? ?????. service.
sudo?vim?/etc/systemd/system/redis_exporter.service
?? ??? ?????. ??:
[Unit]Description=Prometheus?Redis?ExporterDocumentation=https://github.com/oliver006/redis_exporterWants=network-online.targetAfter=network-online.target[Service]Type=simpleUser=prometheusGroup=prometheusExecReload=/bin/kill?-HUP?$MAINPIDExecStart=/usr/local/bin/redis_exporter? ??--log-format=txt? ??--namespace=redis? ??--web.listen-address=:9121? ??--web.telemetry-path=/metricsSyslogIdentifier=redis_exporterRestart=always[Install]WantedBy=multi-user.target
systemd? ?? ???? Redis ???? ?? ???
sudo?systemctl?daemon-reload
sudo?systemctl?enable?redis_exporter
sudo?systemctl?start?redis_exporter
Prometheus Droplet ??(?? ??)
?? ??? ?? Prometheus droplet? ??? ?????.
prometheus.yml ??? ??? ???
cp?/etc/prometheus/prometheus.yml?/etc/prometheus/prometheus.yml-$(date??'%d%b%Y-%H:%M')
Redis ???? ?????? ?????. ????
Prometheus ??? ????? ???? Redis ???? ?????? ?????.
IP ??? ??? Redis ???? ?????? ????(9121? Redis ????? ?? ?????). ???).
vi?/etc/prometheus/prometheus.yml
scrape_configs: ??-?job_name:?server1_db ????static_configs: ??????-?targets:?['10.10.1.10:9121'] ????????labels: ??????????alias:?db1 ??-?job_name:?server2_db ????static_configs: ??????-?targets:?['10.10.1.11:9121'] ????????labels:
?? ??? ?????. ?? ???? ?? ??? ??? ?????.
?? 2: ????? ???? ??
?? ? ?? ????(?? ???? ????? Prometheus? ????)? ???? ?? ??? ?? ????. droplet.
Target Droplet? ???? ??? ???????.
Target? SSH? ?????. Droplet.
?? ??? ???? ?? ?? ????? ???????.
sudo?groupadd?--system?prometheus
????? ?????? ??? ???? ?? ??? ??? ?????.
sudo?useradd?-s?/sbin/nologin?--system?-g?prometheus?prometheus
?? ???? ????? ?????. ?? ?:
curl?-s?https://api.github.com/repos/oliver006/redis_exporter/releases/latest?|?grep?browser_download_url?|?grep?linux-amd64?|?cut?-d?'"'?-f?4?|?wget?-qi?-
??? ???????.
??: redis_exporter.service ??? ?? ???? ????? ???? ????.
Prometheus Droplet ??(???? ??)
Prometheus Droplet? SSH ??? ???? ????? ????????. ??:
tar?xvf?redis_exporter-*.linux-amd64.tar.gz
????? ?????? ??? ?? ?? ??? ??? ?????. ??:
sudo?mv?redis_exporter-*.linux-amd64/redis_exporter?/usr/local/bin/
?? ???? ????? ?????. ??:
redis_exporter?--version
????? ??? ??? ?? ?????.
??? ??? IP? ?????. ??.
??? ???????.
??? ? URL prometheushostname:9090/targets? ????? ??? ??????? ?????.
??: ?? ??? IP ??? ???? ?? ????? ???? ????? ?? ????? ???? ?????. ?? ??? ? ?? ??? ??? ??? 0? ???? ??? ? ????. script
Grafana ??
?????? Grafana-IP:3000? ???? Grafana ????? ??????.
?? ?? > ??? ??.
??? ?? ??? ?????.
Prometheus? ???? ?????.
??? ???????, URL? ?????? (Prometheushostname:9090)? ???? “?? ? ???”? ?????. "??? ??? ?? ????"?? ???? ???? ??? ??? ????? ??? ????. ???? ??? > ????? ?????.
????? ???? ????? ?? ???? ????? ??? ? ????. JSON ??? ????? ????. Redis ????? ?? JSON ???? ??? ????. ?? ???? ?? ? ????:
sudo?vim?/etc/systemd/system/redis_exporter.service
??? ??? ?????.
Grafana ????? ?????????. ???? ???? ????? ?????. ????? ???? ???? ??? ???. ??? ??.
? ??? Redis ???? ???? ???? Redis Droplet ????? ?? ?????. ??? ??? 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)

AI? ??? ??? ?? ?? ? ?? ???? ????? ?? ??? ??????. 1. Baidu, Tencent API ?? ?? ?? NLP ?????? ?? ??? AI ?? ?? API? ??????. 2. PHP? ? ?? guzzle? ?? API? ???? ?? ??? ??????. 3. ?? ????? ?? ?? ??? ???? ???? ???? ??? ??? ? ????. 4. ?? ?? ? ?? ???? ?? PHP-L ? PHP_CODESNIFFER? ??????. 5. ???? ????? ???? ?? ?? ??? ?????? ??? ??????. AIAPI? ??? ? ???, ?? ??, ?? ? PHP ?? ??? ??? ???. ?? ???? PSR ??? ???, ??? ????? ????, ?? ??? ???, ????? ??? ????, X? ???????.

PHP? ?????? ????? ?? ?? ?? ???? ???? ?? ???? ???? ?? ?? ???? ?????. 2. ?? ??? ???? ???? ?? ??? ?? ? ??? ??? ???? ?? API/Webhook ??? ??? ?? ???? ??? ??? ??? ??? ?????. 3. ?? ????? ?? ??, ??/???? ????, ???? ??, ???? ? ??? ?????? ????? ?? ??? ???? ???? ?? Dingtalk, SMS ?? ??? ???? ??? ?????? ???? ?? ? ??? ??? ????? ?? ??? ???? ???????.

PHP? AI ??? ??? ?? ????? ??? API? ?? ?????. ??? ??? ????? ? ??? ???? ?????. API ??? ?? ?? ??? ???? ??? ??? ???? ???? ? ????. 2. ?? ?? ???? guzzle ?? curl? ???? HTTP ??? ???, JSON ??? ??? ? ???, API ? ?? ??, ??? ? ?? ??? ???? ??, ??? ?? ?? ? ? ?? ????, ??? ?? ? ?????? ?????. 3. ???? ???? ?? ???? API ??, ?? ? ??? ?? ??, ??? ?? ??, ?? ?? ? ??? ??? ??? ?????. ?? ??? ??? ??? ? ??? ???? Propt ?? ? ?? ?? ??, ??? ?? ? ?? ????, ?? ?? ?? ???? ? ??? ?? ? ???? ????? ?????.

1. PHP ?? ?? ? ?? ?????? Laravel MySQL VUE/React ??? ? ?? ??? ???? ??? ?? ?? ??? ?? Laravel MySQL VUE/React ??? ? ?? ?????. 2. ???? ?? (REDIS), ?????? ???, CDN ? ??? ?? ???????. 3. ?? ???, CSRF ??, HTTPS, ???? ??? ? ?? ??? ??? ???????. 4. ? ??? ??, ?? ??, ??, ???, ?? ?? ? ?? ??? ??? ???? ? ? ??? ??? ?? ????.

PHP?? ?? ??? ???? ? ?? ?? ??? ????. 1. php.ini? ?? ??? ??; 2. ? ?? (? : Apache? Setenv ?? nginx? FastCGI_Param)? ??????. 3. PHP ?????? putenv () ??? ??????. ? ??? Php.ini? ????? ??? ???? ??? ???? ? ?? ??? ?? ???? ????? ???? Putenv ()? ?? ??? ?????. ?? ???? ?? ?? (? : php.ini ?? ? ?? ??)? ???? ????. ?? ?? ??? ??? ?? ??? ????? ???? ?? ????.

??? AI ?? ?? ???? ???? PHPSDK? ??????. 2. PHP? ???? FFMPEG? ???? ???? API ?? ?? (? : WAV)?? ?????. 3. ??? ???? ????? ????? API ???? ??? ??????. 4. NLP ??? ???? JSON ??? ???? ???? ?????. 5. ?? ??? ???? ???? ?? ?? ?? ?? ?? ??? ?????. ?? ????? ?? ?? ? ??? ???? ?? ??? ???, ??? ?? ? ??? ???????.

??? ?? ???? ????? PHP? ?? ??, ??, ?? ? ?? ??? ??????? ?????? ???? ???? ?? ???? ???????. 2. ?? ???? ??? ??? ??? ?? ????????. ???, ?? ???, ?? ?? ?? ?? ??? ??; 3. ?? ?? ???? PHP?? ???? ??? ??? ???? ???? ?? ??? ??? ???? ?? ?? ??? ???? ?? ??? ?????. 4. ?? ??? ???, ??, F1 ? ? CTR, ???? ???? A/B ???? ?? ??? ?????. 5. ?? ??? ??? ?? ??, ??? ?? ??, ?? ?? ?? ? ??? ??? ?? ?? ? ? ????. 6. ?? ??? ???? ?? ? ?? ??, ??? ??, ?? ??? ? SQL ?? ???? ???? ?? ??? ? ??? ??? ?????.

PHP? ??? ?? ??, ?????? ???? ? ?? AI ???? ???? ? ????? ??? ?? ????? ??? ? ??? ??? ??? ?????. 2.?? ??? ?? ?? ??? ????? ???????. ??? ??? ??? ???, PHP ??? ??? ? ?? ??? ???? ?? ?? ?? ??? ???? ??? OpenAI ?? DialogFlow? ?? ?? AI ???? ???? ???? ??? ????. 3. ?? ??? ???? ???? ???? ?? PHP? ?? MySQL ? ?? ??????? ?????. 4. ?? AI ???? guzzle? ???? HTTP ??? ??? Apikeys? ???? ???? ?? ?? ? ?? ??? ? ???????. 5. ?????? ????? ??, ???, ?? ?? ? ??? ???? ???????, ???? ????? ???? ?? ? ??? ???? ?? ???? ???????.
