[nginx] [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in ...

nginx 1.25.1부터 listen 지시문에 http2이 들어가면 아래와 같은 경고문이 나올 수 있다. $ nginx -t nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/???.conf:2 nginx 새 판에서 listen 지시문에 들어가는 매개변수에 http2을 받아들이지 않을 것임을 예고하고 있다. 아직은 경고문이 나오고 작동은 하지만, 나중에 나오는 nginx 판...

[nginx] [selinux] open() "/var/run/nginx.pid" failed (13: Permission denied)

아래는 CentOS 7에서 nginx를 실행하여 실패했을 때 'journalctl -xe'로 본 오류 로그. May 29 17:53:05 main-server systemd[1]: Unit nginx.service entered failed state. May 29 17:53:05 main-server systemd[1]: nginx.service failed. May 29 17:53:05 main-server polkitd[549]: Unregistered Authentication Agent for unix-p lines 1166-1188/1188 (END) May 29 17:53:05 main-server system...

[nginx] [PHP] File not found.

웹에서 PHP 프로그램을 실행했을 때 "File not Found."라고 나온다면, nginx 설정에서 fastcgi_param 지시문에 SCRIPT_FILENAME를 잘못 지정했기 때문일 수 있다. nginx.conf 또는 nginx.conf에서 읽어들이는 설정 파일에 아래 내용을 새로 넣거나 고쳐 넣는다. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

[yum] CodeIT repo의 openssl-quic-libs를 갱신하지 못할 때

CodeIT repo를 통하여 openssl-quic-libs를 openssl 3.0.8을 지원하는 판으로 갱신(update)하려 할 때에, 아래처럼 의존성 문제가 나는 경우가 있다. # sudo yum update openssl-quic-libs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.navercorp.com * epel: mirror-jp.misakamikoto.network * extras: mirror.navercorp.com * remi: ftp.riken.jp * re...

[nginx] [SElinux] open() "/etc/nginx/???.conf" failed (13: Permission denied)

-- Unit nginx.service has begun starting up. Jan 15 01:23:53 test_server nginx[20612]: nginx: [emerg] open() "/etc/nginx/???.conf" failed (13: Permission denied) in /etc/nginx/conf.d/#default.conf:8 Jan 15 01:23:53 test_server systemd[1]: nginx.service: control process exited, code=exited status=1 Jan 15 01:23:53 test_server systemd[1]: Failed to start nginx - high perf...

[PHP] Memcache::connect(): Server unix:///memcached.sock (tcp 11211, udp 0) failed with: Connection failed: No such file or directory

Notice: Memcache::connect(): Server unix:///.../memcached.sock (tcp 11211, udp 0) failed with: Connection failed: No such file or directory (2) in /.../???.php on line 157 Warning: Memcache::connect(): Can't connect to unix:///.../memcached.sock:11211, Connection failed: No such file or directory (2) in /.../???.php on line 157 PHP의 Memcache 클래스의 connect 함수의 원...

[certbot] [SELinux] challenge 디렉토리 권한 문제로 Let's Encrypt 인증서가 갱신되지 않을 때

보안 강화 리눅스(SELinux)를 켜고 나서 webroot 방식으로 Let's Encrypt SSL/TLS 인증서를 갱신할 때에, 아래처럼 디렉토리 권한 문제로 403 오류가 나서 인증서를 갱신하지 못하는 때가 생길 수 있다. (certbot 명령어에 --dry-run을 붙이면 인증서를 실제로 갱신하지 않고 시험해 볼 수 있다.) # certbot renew --dry-run Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - -...

[SELinux] failed to listen on UNIX socket: /var/run/memcached/memcached.sock: Permission denied

-- Subject: Unit memcached.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit memcached.service has finished starting up. -- -- The start-up result is done. Feb 19 11:09:15 test_server polkitd[589]: Unregistered Authentication Agent for unix-process:21244:305184463 (system bus name :...

[최불암 시리즈] 헤엄

어떤 젊은 여자가 강물에 빠져서 허우적거리고 있었다. 하지만 사람들은 구경만 할 뿐, 아무도 살려달라고 애원하는 여자를 구하려고 뛰어들지 않았다 바로 그 때, 머리가 희끗한 중년 남자가 용감하게 나오더니 '첨벙' 하고 물에 뛰어들었다. 자세히 보니 최불암이었다. 사람들은 모두 감탄했다 최불암은 열심히 헤엄쳐서 물에 빠진 여자가 허우적거리는 곳까지 갔다. 그리고 최불암이 여자에게 하는 말 "건너가게 비켜!"

[최불암 시리즈] 속도 위반 ②

미국에 간 최불암이 속도 위반으로 또 교통 경찰에게 걸렸다. 그런데 하필이면 지난번에 만난 그 경찰이었다. 최불암이 경찰에게 이렇게 말했다. "Please look at me at once." (제발 한 번만 봐 주세요.) 그러자 최불암을 알아본 경찰이 하는 말 "No soup, today." (오늘은 국물도 없다.)