Letsencrypt 인증서 업데이트 요령 Letsencrypt ssl 인증서는 3개월마다 업데이트 해야 한다. 보통 아래 순서로 업데이트를 진행하는데 # systemctl stop nginx.service # certbot-auto renew # systemctl start nginx.service certbot-auto renew가 실행되는 과정에 certbot-auto 업그레이드 과...
centos 7 run level 7버전대 와서 init을 쓰지 않고 systemd를 사용하므로 아래와 같이 변경한다. # systemctl get-default // 현재 runlevel을 보여주기 # systemctl set-default multi-user.target // 멀티유저(runlevel 3)으로 변경 # systemctl set-default graphical.target ...
nginx hot link protection location ~ \.(jpe?g|png|gif)$ { valid_referers none blocked domain.com *.domain.com; if ($invalid_referer) { return 403; } } valid referers *.google.com *.googleusercontent.com *.bing.com *.facebook.com *.twitter.com *.pinterest.com *.naver....
대역폭, 트래픽 대역폭(Bandwidth)는 쓰이느 곳도 많고 의미도 약간씩 다를 수 있습니다. cpu, memory, hdd 모두 대역폭을 갖고 있습니다. usb도 대역폭을 갖고 있고, 랜카드도 대역폭을 갖고 있습니다. 보통 속도라고 이해하고 있습니다. 대역폭은 "한번에 보낼 수 있는 데이...
트래픽 트래픽은 네트워크를 통해 움직이는 데이타 양입니다. 단위시간당 전송률 비트레이트를 단위로 쓰며 보통 초당 비트수를 사용합니다. bps, Kbps, Mbps, Gbps 등을 사용합니다. 우리가 idc 에서 서버를 사용할 때(서버호스팅을 사용할 때) 트래픽 약정을 하는데...
MariDB 10.1 to 10.2 upgrade 1. MariaDB repo 를 10.1 에서 10.2로 변경한다. 참조 : http://downloads.mariadb.org/mariadb/repositories/ 2. Set innodb_fast_shutdown to 0 ( MariaDB 10.2.5 또는 그 이후 버전일 때에는 필요없음.) mysql -u root -p --execute="SET GLOBAL innodb_fas...
진화하는 spam 그리고 ModSecurity XE는 다른 오픈소스 cms와 마찬가지로 spam에 대처하기가 쉽지 않습니다. 대처하기가 쉽지 않다고 말하는 이유는, 스팸이 등록되지 않도록 하기위해 쓰기 권한을 로그인사용자 이상으로 설정하거나 강력한 캡차를 사용하면 대부분 막을 수 있으나 폭주하는 스...
centos 7 nginx http/2 적용 (ALPN) Centos 7.4에서 openssl이 1.0.2(ALPN)로 업데이트되었습니다. apache 와 nginx 모두 기본으로 http/2가 적용됩니다. 그동안 사용했던 아래 팁은 이제 필요없습니다. Centos 7에서 nginx http/2 적용하기 ------------------------------------- nginx 1.13.2 ...
ImageMagick 설치 remi에 있는 최신버전 ImageMagick7-7.0.1.9-1은 phpize에서 에러난다. centos7 기본 버전 설치 yum install ImageMagick ImageMagick-devel php-devel이 설치되어 있지 않다면 설치한다. yum install php-devel pecl install imagick php.ini에 extension=ima...
오래된 커널 삭제 /boot 용량 부족으로 커널 업데이트가 안된다면 #yum install yum-utils 3개만 남겨두자 센트 기본이 5개이다. #package-cleanup --oldkernels --count=3 /etc/yum.conf를 수정하여 3개만 남겨두고 자동으로 삭제하도록한다. installonly_limit=3
file upload php.ini 설정 file_uploads = On upload_max_filesize post_max_size max_execution_time memory_limit memory_limit > post_max_size > upload_man_filesize
centos 7 firewall https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html