본문 바로가기

PHP13

PHP 메모리 사용량 확인 ps -aux | grep php | awk '{print $1" " $6/1024" MB"}' 2020. 12. 21.
php memcache 컴파일옵션 넣기 1) php 소스 함축 해제 --> 최신 소스를 php.net에서 다운 받아서 압축해제 2) memcache 소스 다운로드 --> pecl.php.net에 가면 다운받을 수 있다. 3) memcache 소스 복사 --> memcache소스를 다운받아 압축을 해제하면 memcache-2.4.5가 생기는데 이걸 php소스의 디렉토리 하위의 ext 디렉토리에 memcache로 복사 4) configure 재성성 --> memcacache를 같이 컴파일 하기 위해서 기존 configure 파일 삭제 --> php 디렉토리에 보면 buildconf 파일이 있다. ./buildconf --force를 실행하면 memcache를 포함하여 컴파일 할 수 있는 configure 파일이 생성됨 --> buildconf 실.. 2020. 6. 11.
PHP7.3 yum 설치시 mysqli 설치 # yum -y install php73-php-mysqli # vi php.ini extension_dir = mysqli.so 파일 위치 extension = mysqli.so nginx, php-fpm 재시작 mysqlnd 가 없으면 인식 못할수도 있다 extension = mysqlnd.so 이걸 넣어줘야 하는데 무조건 mysqli.so 보다 윗줄에 써서 먼저 로드되도록 해야한다. 2019. 8. 23.
memcached 설치 (nginx + php 5.3.3) @Centos 6버전, nginx + php5.3.3 버전 # cat /etc/redhat-release CentOS release 6.x @저장소 추가 # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm @패키지 확인 # yum list | grep mem php-pecl-memcache.x86_64 3.0.5-4.el6 @base php-pecl-memcached.x86_64 1.0.0-1.el6 @epel @패키지 설치 # yum -y install php-pecl-memcached.x86_64 # yum -y install php-pecl-memcache.x86_64 @ php+nginx 연동 후 상태확인 # netstat.. 2019. 4. 25.