본문 바로가기

728x90

리눅스

[리눅스] Spring Boot(Gradle) 빌드 및 배포 구현(github, jenkins, dockerhub) Spring Boot(Gradle) 빌드 및 배포 구현(github, jenkins, dockerhub) 1. 개발자 : github main branch에 push 2. Jenkins : github에 push된 spring boot 프로젝트를 가져와서 도커 컨테이너에서 빌드 3. Jenkins : 빌드된 도커 이미지를 docker hub에 push 4. 서버 : docker hub에 올라가 있는 도커 이미지를 다운로드(pull) 받아서 도커 컨테이너 실행 spring boot 프로젝트 생성(gradle) - VSCode에서 스프링 부트 프로젝트(Spring Initializr Java Support)를 생성하였습니다. $ tree -L 2 . ├── HELP.md ├── bin │ ├── main │.. 더보기
[명령어] find 명령어 find 명령어 find 명령의 기본 구문 find [검색 경로] [옵션] [검색 조건] 유용한 find 명령의 옵션 -type: 파일 형식으로 검색합니다. 예를 들어, -type f는 일반 파일만 검색합니다. -size: 파일 크기로 검색합니다. 예를 들어, -size +10M는 10MB보다 큰 파일을 검색합니다. -mtime: 파일 수정 시간으로 검색합니다. 예를 들어, -mtime -7은 7일 이내에 수정된 파일을 검색합니다. -exec: 검색된 파일에 대해 지정된 명령을 실행합니다. 예를 들어, -exec ls -l {} \;는 검색된 파일의 자세한 정보를 출력합니다. 생성된 지 30일 이상 된 파일만 삭제 crontab -e 0 2 * * * find /var/spool/clientmqueue .. 더보기
[리눅스] PHP : mecab-ko 설치 및 사전 적용 mecab-ko 설치 및 사전 적용 설치 환경 - 운영체제 : CentOS 7 - 언어 : PHP 7.4 mecab-ko(mecab) 다운로드 및 설치 최신 버전 : https://bitbucket.org/eunjeon/mecab-ko/downloads/ wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz tar xvfz mecab-0.996-ko-0.9.2.tar.gz cd mecab-0.996-ko-0.9.2 ./configure make && make install mecab-ko-dic(한국어 사전) 다운로드 및 설치 최신 버전 : https://bitbucket.org/eunjeon/mecab-ko-d.. 더보기
CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 UNIX에서 프로세스 상태 제어를 허용하는 시스템 EPEL 저장소 설치 yum install epel-release Supervisor 설치 supervisor 패키지 설치 yum install -y supervisor supervisor 버전 정보 확인 supervisord --version $ supervisord --version 3.4.0 Supervisor 서비스 시작 및 활성화 systemctl --now enable supervisord $ systemctl status supervisord ● supervisord.service - Process Monitoring and Control Daemon Load.. 더보기
CentOS 7에서 PHP-FPM 7.4를 설치하는 방법 CentOS 7에서 PHP-FPM 7.4를 설치하는 방법 PHP-FPM : PHP FastCGI Process Manager CentOS 7은 PHP 5.x를 지원하며, PHP 8.1은 공식 CentOS 7 저장소에 포함되어 있지 않습니다. EPEL 저장소 및 YUM Utilities 패키지 설치 sudo yum install -y epel-release yum-utils Remi 저장소 설치 sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm CentOS 7의 기본 PHP 버전 정보 yum info php | egrep 'Name|Arch|Version|Repo' $ yum info php | egrep 'Name|Ar.. 더보기
CentOS 7에서 NGINX의 최신 버전을 설치하는 방법 CentOS 7에서 NGINX의 최신 버전(안정 버전)을 설치하는 방법 nginx : High performance web server RHEL and derivatives : http://nginx.org/en/linux_packages.html#RHEL-CentOS 테스트 환경 운영체제 버전 정보 $ cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2 CentOS Linux 7 (Core) NGINX 설치 EPEL 저장소 및 YUM Utilities 패키지 설치 yum install -y epel-release yum-utils nginx.repo 파일 생성 sudo tee /etc/yum.repos.d/nginx.repo 더보기
쿠버네티스 실습 환경(플레이그라운드) 쿠버네티스 실습 환경(플레이그라운드) O'Reilly Katacoda home https://katacoda.com 로그인 필요없음 운영체제 : Ubuntu"20.04.2 LTS (Focal Fossa) Play with Kubernetes https://labs.play-with-k8s.com docker 또는 github 로그인 필요 운영체제 : CentOS Linux 7 (Core) 세션 및 모든 해당 인스턴스는 04:00:00 시간 후에 삭제됩니다. 더보기
[VPN] Linux에서 SoftEther VPN 클라이언트 설치 SoftEther VPN 클라이언트 설치 softether-vpnclient 설치 $ cd /usr/local/src/ $ wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz $ tar xvfz softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz $ make --------------------------------.. 더보기

728x90