[최불암 시리즈] 최불암과 40인의 도둑

최불암이 알라딘의 주문을 알아내서 보물이 숨겨진 동굴로 달려가서 외쳤다. "열려라, 참깨!" 그러자 동굴문이 열려서 들어갔는데, 보물이 산더미처럼 쌓여 있었다. 보물을 한 가득 싸서 가지고 나오려는데, 주문이 생각나지 않았다. 한참 생각해 내려고 애쓰고 있는데 밖에서 40인의 도둑들이 주문을 외는 소리가 들렸다. "열려라, 참깨!" 그러자 동굴문이 열리고 험상궂은 40인의 도둑들과 최불암이 마주쳤다. 엉겹결에 최불...

[SELinux] [nginx] cannot load certificate "/etc/pki/tls/certs/default_ssl.crt": BIO_new_file() failed

-- Unit nginx.service has finished shutting down. Jan 15 01:32:43 test_server systemd[1]: Starting nginx - high performance web server... -- Subject: Unit nginx.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit nginx.service has begun starting up. Jan 15 01:32:43 test_server nginx[2131...

[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 :...