PHP-FPM 썸네일형 리스트형 CentOS 7에서 PHP-FPM 7.4를 설치하는 방법 CentOS 7에서 PHP-FPM 7.4를 설치하는 방법 PHP-FPM : PHP FastCGI Process Manager CentOS 7은 PHP 5.x를 지원하며, PHP 8.1은 공식 CentOS 7 저장소에 포함되어 있지 않습니다. EPEL 저장소 및 YUM Utilities 패키지 설치 sudo yum install -y epel-release yum-utils Remi 저장소 설치 sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm CentOS 7의 기본 PHP 버전 정보 yum info php | egrep 'Name|Arch|Version|Repo' $ yum info php | egrep 'Name|Ar.. 더보기 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.67Average Proccess Size (MB): 323.734아파치 프로세스 개수$ ps -ef | grep ht.. 더보기 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.. 더보기 이전 1 2 3 4 다음