우아한 테크코스/이것저것
-
Ubuntu에 MySql 설치 & Database 및 계정 생성우아한 테크코스/이것저것 2020. 8. 11. 16:44
MySQL 설치 $ sudo apt-get update $ sudo apt-get install -y mysql-server MySQL 데몬 설정 (서버 재시작시 자동으로 실행되도록) $ sudo systemctl enable mysql MySQL 프로세스 시작 $ sudo systemctl start mysql MySQL 접속 $ sudo /usr/bin/mysql -u root -p 패스워드 설정 > ALTER USER 'root'@'localhost' IDENTIFIED BY '설정할비밀번호'; Query OK, 0 rows affected (0.00 sec) // 5.7.6 이전 버전 > SET PASSWORD FOR 'root'@'localhost' = PASSWORD('설정할비밀번호'); 버전..
-
명령어로 Nginx SSL 인증서 발급하기(자동 갱신/Letsencrypt)우아한 테크코스/이것저것 2020. 8. 10. 19:53
Certbot이 자동으로 인증서를 갱신해줘 편리한 방식 Certbot 설치 $ sudo apt-get update $ sudo apt-get install -y software-properties-common $ sudo add-apt-repository universe $ sudo add-apt-repository ppa:certbot/certbot $ sudo apt-get update $ sudo apt-get install certbot python-certbot-nginx # 만약 다음과 같은 에러가 난다면1 E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release..
-
Jenkins & Github 연동우아한 테크코스/이것저것 2020. 8. 2. 00:13
Github Access 토큰 발급 [Github] - 프로필 선택 - [Settings] [Github] - [Profile] - [Developer settings] Developer Settings 선택 [GitHub Apps] Personal access tokens [Personal access tokens] Generate new token [New personal access token] 토큰 생성 - repo / admin:org / admin:repo_hook - Generation token Personal access tokens 생성 키 확인 생성이 완료되면 token 값 생성, (주의) 이 때 저장해놓지 않는다면 다시 token 값을 확인할 수 없음 Access Token을 이용해..
-
Docker를 이용한 Jenkins Gradle, JDK 설정우아한 테크코스/이것저것 2020. 7. 31. 10:15
[Jenkins] 접속 - [Jenkins 관리] - [Global Tool Configuration] 들어가기 전에 플러그인 관리 업데이트 가능함 떠서 업데이트 후 진행함 기본 설정 git이 설정되어 있음 [JVM] 등록하기 Docker Hub에서 jenkinsci/blueocean 이미지 확인 ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk Install automatically 해제 후 JAVA_HOME 이미지와 경로 동일하게 설정 [Gradle] 등록하기 gradle은 자동 설치로 등록해보기 [저장] 설정 다 되었으면 저장하기
-
Ubuntu - 재부팅시 Docker를 이용한 Jenkins 자동으로 ON우아한 테크코스/이것저것 2020. 7. 31. 09:34
Docker 컨테이너 확인 후 제거 $ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4bb24e16a109 jenkinsci/blueocean "/sbin/tini -- /usr/…" 6 seconds ago Up 5 seconds 0.0.0.0:50000->50000/tcp, 0.0.0.0:8080->8080/tcp jenkins-blueocean b9754d7f715e docker:dind "dockerd-entrypoint.…" 2 minutes ago Up 2 minutes 2375/tcp, 0.0.0.0:2376->2376/tcp jenkins-docker $ sudo docker stop jenkins-blueoce..
-
Jenkins 설치 후 실행하기우아한 테크코스/이것저것 2020. 7. 30. 23:56
설치 환경 ubuntu Ubuntu에 Docker 설치 참고 링크 : https://docs.docker.com/engine/install/ubuntu/ 기존 설치 내역 제거 $ sudo apt-get remove docker docker-engine docker.io containerd runc 레파지터리 설정 1. HTTPS를 통해 레파지터리를 사용할 수 있도록 적절한 패키지 인덱스 및 설치 패키지 업데이트 $ sudo apt-get update $ sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common 2. 도커의 공식 GPG 키 추가 $ curl -f..