개발/Linux

개발/Linux

[Linux/Ubuntu] E: Unable to lock directory /var/lib/apt/lists/ 처리

매번 update 할 때마다 발생하는 것 같은 이 오류 $ sudo apt-get update Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1494 (packagekitd) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to lock directory /var/lib/apt/lists/ 이 오류는 lock 파일 삭제로 간단하게 처리 할 수 있다. 다양한 방법이 있다. $ sudo rm /var/lib/apt/lists/lock $ sudo rm /var..

개발/Linux

[CentOS7] Let's Encrypt SSL 인증서 발급 및 적용(tomcat)

무료 SSL/TLS 인증서 - Let's Encrypt Let's Encrypt는 사용자에게 무료로 TLS 인증서를 발급해주는 비영리기관이다. 발급된 인증서는 유효기간이 90일이며 만료 30일 전부터 갱신할 수 있으며, 갱신 가능 횟수는 무제한이다. 인증서 가격이 3만 원에 이르고 와일드카드의 경우 15만 원에 이르러 1년 동안 제공되지만 돈 없는 일반인에게는 부담되는 가격이지만, 이런 점들을 해결해 준다. SSL 인증서 발급(CentOS) 1. 설치 $ yum install epel-release $ yum install python-certbot-apache 2. SSL인증서 발급 도메인 별로 인증서를 발급받아야 한다. 인증서 생성 방식은 webroot이고, -w 에는 해당 도메인의 프로젝트 위치 -..

개발/Linux

[Linux/Ubuntu] openssl 설치(+wget 사용)

wget 사용해서 opensl파일 다운로드하기 사이트 들어가서 직접 다운로드해서 설치하는 경우도 있지만, 저는 명령어로 다운로드 받아서 설치하겠습니다. 1. openssl 파일 다운로드 2. wget 사용 3. tar 풀기 4. 설치 5. 설치 확인 6. 예제 1. openssl 파일 다운로드 www.openssl.org/source/ /source/index.html The master sources are maintained in our git repository, which is accessible over the network and cloned on GitHub, at https://github.com/openssl/openssl. Bugs and pull patches (issues and p..

개발/Linux

[Linux/Ubuntu] su : Authentication failure

우분투 설치 후 root계정의 비밀번호를 설정하는 과정이 없었다면, "su : Authentication failure" 에러가 발생한다. root 계정의 비밀번호를 설정해주지 않은것 자체가 문제였던것이다. 따라서 root 계정의 비밀번호를 업데이트 해주고 난 후에 root 계정에 접근하면 된다. sudo passwd root

호이호이209
'개발/Linux' 카테고리의 글 목록 (4 Page)