Error NoteLinux/Linux 일반2024/08/06 11:22by 깜빡쟁이memcached의 메모리를 너무 적게 설정하면 아래처럼 "Cannot set item size limit higher than 1/2 of memory max."라고 나오며 memcached가 실행되지 않을 수 있다. ● memcached.service - memcached daemon Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Sun 2024-08-04 17:53:12 KST; 24s ago Duration: 21ms...
Error NoteLinux/Linux 일반2024/07/27 13:55by 깜빡쟁이memcached의 설정 파일인 /etc/sysconfig/memcached에서 MAXCONN의 기본값은 아래와 같다. MAXCONN="1024" 이 값을 너무 낮추면 아래처럼 오류가 뜰 수 있다. # systemctl status memcached × memcached.service - memcached daemon Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Sat 2024-07-27 09:08:49 KST;...
Error NotePHP2024/07/11 21:29by 깜빡쟁이class Class_Name { function Method_name($param1 = null, $param2 = null) { ... } } Class_name::Method_name($a, $b); PHP 8 이상에서 위처럼 non-static 메소드를 static 메소드처럼 다루면 아래와 같은 오류가 날 수 있다. PHP Fatal error: Uncaught Error: Non-static method Class_name::Method_name() cannot be called statically in /.../.../???.php:115 다음 두 가지 방법으로 이 오류를 없...
Error Notenginx2024/07/10 01:52by 깜빡쟁이-- Unit nginx.service has begun starting up. Jan 15 01:40:19 test_server systemd[1]: Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory Jan 15 01:40:19 test_server systemd[1]: Started nginx - high performance web server. -- Subject: Unit nginx.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop....
Error NotePHP2024/07/09 18:40by 깜빡쟁이PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /…/… 배열이나 객체의 원소 수를 셀 때 count 함수를 쓰곤 한다. PHP 8 이상에서 셀 수 있는 객체나 변수를 count 함수로 세려고 하면 위와 같은 오류가 나올 수 있다. PHP 7까지는 없던 제한이다. $a = count($b); $b가 null 값이거나 셀 수 없는 것이면 오류가 날 수 있다. 아래처럼...
Error NoteLinux/SELinux2024/07/08 10:49by 깜빡쟁이PHP에 들어간 opcache의 JIT 기능을 켜면 '502 Bad Gateway' 오류가 떴는데, Selinux를 끄면 오류가 나지 않으므로 SELinux에 원인이 있었다. Centos Stream 9로 돌리는 웹 서버에서는 Selinux를 끄고 php-fpm을 다시 실행하면 502 오류가 다시 뜨지 않았지만, 알마리눅스(AlmaLinux) 9.4로 돌리는 웹 서버는 Selinux를 끄면 502 오류가 다시 나왔다. audit2why와 audit2allow로 audit 로그(audit.log)와 해결...
Error NoteLinux/Linux 일반2024/07/04 11:13by 깜빡쟁이신뢰할 수 있는 인증 기관으로 등록되지 않은 SSL/TLS 인증서를 쓰는 곳을 curl로 접근하먼 이런 오류를 겪을 수 있다. 구글(google) 인증서를 쓰는 곳에서 그럴 수 있다. # curl https://www... curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore...