본문 바로가기
728x90
반응형

분류 전체보기353

[zsh] install zsh and oh-my-zsh 환경Ubuntu 22.04.3 LTSzsh 5.8.1 (x86_64-ubuntu-linux-gnu)GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) 참고 문서: Installing ZSH · ohmyzsh/ohmyzsh Wiki (github.com) Installing ZSH🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, pyth...github.com zsh.. 2023. 9. 11.
[HTTPS] certbot을 통한 nginx에서 HTTPS 설정. 환경 Ubuntu 22.04.3 LTS certbot 1.21.0 certbot설치 다음 명령어로 certbot을 설치함. sudo apt install certbot python3-certbot-nginx certification 발행받기. 아래 진행은 도메인 네임 ds31x.site 라는 도메인 명에서 code.test.me 서브도메인 명을 certbot의 chain으로 삼아 certification을 발행받는 것을 목표로 함. (해당 도메인 명들을 자신의 것으로 바꾸어야 함) sudo certbot -d test.me -d code.test.me --manual --preferred-challenges dns certonly --dry-run --dry-run 옵션은 일종의 시뮬레이션으로 성공해도 .. 2023. 9. 10.
[certbot] Error : The following renewal configurations were invalid sudo certbot certificates 를 실행하여 현재 https 를 위한 인증서 chains를 확인하려고 했는데, 다음과 같은 에러가 발생함. Renewal configuration file /etc/letsencrypt/renewal/code.ds31x.site-0001.conf produced an unexpected error: expected /etc/letsencrypt/live/code.ds31x.site-0001/cert.pem to be a symlink. Skipping. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Found the following certs: Certifica.. 2023. 9. 10.
[HTTPS] Certification 갱신 : certbot renew certbot을 통한 무료인증서는 90일 갱신 주기를 가진다. (유료는 1년으로 알고 있다.) 즉, 3개월 마다 한번씩 갱신(renew)이 필요하다. 갱신을 위한 명령어는 다음과 같다. sudo certbot renew 특정 chain만을 갱신하려면, --cert-name 옵션으로 해당 chain 이름을 입력하면 된다: sudo certbot renew --cert-name code.ds31x.site 만약 certification의 유효 기간이 많이 남은 경우, 갱신이 안된다. 유효 기간에 상관없이 갱신하려면 --force-renewal 옵션을 붙여주면 된다. 갱신 수행 Test 갱신이 되는지 테스트만을 하고 싶다면 다음과 같이 --dry-run 옵션을 붙여서 수행하면 된다. 성공할지 여부를 미리 확인.. 2023. 9. 10.
[HTTPS] certbot 사용법 : chain 삭제 Letsencrypt 에서의 Chain이란 동일한 certification 을 사용하는 domains를 설정하는 단위. /etc/letsencrypt/live 에 Chain명의 directory가 존재함. 해당 directory 밑에 관련 certification, key등이 존재. Chain 삭제가 필요한 경우 Domain을 사용하지 않게 되거나 특정 domain을 다른 서버로 이전시키는 등의 일이 발생하는 경우, 해당 Chain을 삭제해야함. 단, nginx 등에서 사용하지 않는 것을 반드시 체크하고 지워야 함. Chain 삭제 명령어 certbot delete --cert-name 삭제 대상들의 위치. /etc/letsencrypt/live/ /etc/letsencrypt/archive/ /etc/.. 2023. 9. 10.
[Tip] 특정 문구가 있는 process들을 모두 kill kill -9 `ps -ef|grep gunicorn|awk '{print $2}'` gunicorn과 관련된 모든 process들을 종료시킴. 2023. 9. 8.
728x90
반응형