본문 바로가기

반응형

PHP-FPM

[리눅스] apache, php 메모리 모니터링 명령어 apache, php 메모리 모니터링 명령어 apache 모니터링 아파치 메모리 사용량 ps -ylC httpd | awk '{x += $8;y += 1} END {print "Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' $ ps -ylC httpd | awk '{x += $8;y += 1} END {print "Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' Memory Usage (MB): 1618.67 Average Proccess Size (MB): 323.734 아파치 프로세스 개수 $ ps -ef |.. 더보기
NGING에서 PHP-FPM 상태를 활성화하고 모니터링하는 방법 NGING에서 PHP-FPM 상태를 활성화하고 모니터링하는 방법nginx 설정vim /etc/nginx/conf.d/default.conf$ vim /etc/nginx/conf.d/default.conf... # nginx, php-fpm status location ~ ^/(status|ping)$ { fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; include fastcgi_params; allow 127.0.0.1; al.. 더보기
NGINX 및 PHP-FPM Access Log 포맷 설정 NGINX 및 PHP-FPM Access Log 포맷 설정nginx access log format 설정vim /etc/nginx/nginx.confhttp {... log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$remote_addr"' ' REQ_TIME: $request_time s - CONNECT_TIME: $upstream_connect_time s - P.. 더보기
[리눅스] 우분투에서 PHP-FPM 최신(php-fpm 8.1) 버전 설치하기 우분투에서 PHP-FPM 최신(php-fpm 8.1) 버전 설치하기 php-fpm : PHP FastCGI Process Manager 테스트 환경 $ lsb_release -d Description: Ubuntu 22.04.2 LTS $ uname -m x86_64 $ getconf LONG_BIT 64 PPA(Personal Package Archive) 리포지토리를 시스템의 패키지 소스 목록에 추가 sudo add-apt-repository ppa:ondrej/php apt-get update -y PHP 8 설치 php(php-fpm) 8.1 설치 sudo apt-get install -y php8.1 php8.1-dev php8.1-cli php8.1-fpm php8.1-common php8.1.. 더보기

728x90
반응형