⚙️OS8 [Linux] Cent OS 7에서 서비스 등록하기 서비스 파일 생성경로/etc/systemd/system 파일 생성sudo vi [서비스명].service 파일 내용[Unit]Description=Test Service StartAfter=syslog.target network.target postgresql.service[Service]ExecStart=/usr/lib/jdk-17.0.10/bin/java -jar /usr/server/test.jarRestart=on-failureRestartSec=10[Install]WantedBy=multi-user.target 섹션옵션설명UnitDescription 서비스에 대한 설명 Before 서비스가 시작되기 전 실행할 명령어 After 서비스가 시작된 후 실행할 명령어ServiceExecStart 서비스.. ⚙️OS/Linux 2024. 5. 23. [Windows] Windows에서 jar파일을 AWS 서버에 배포하기 - (2) Dockerfile을 이용한 AWS 배포 AWS 배포를 위한 기본 세팅 https://tlseoqja.tistory.com/83 [Windows] Windows에서 jar파일을 AWS 서버에 배포하기 - (1) 배포를 위한 기본 세팅 AWS ECS 생성 먼저 서버를 배포하기 전에 AWS의 ECS (Elastic Container Service)를 생성해야 된다. 공식문서나 다른 블로그를 찾아보고 클러스터 및 서비스를 등록해주면 된다. https://docs.aws.amazon.com/ko_kr/Amaz tlseoqja.tistory.com Dockerfile을 사용해 AWS에 배포하기 명령 프롬프트창을 열고 Dockerfile을 생성한 폴더로 이동한다. 아래 순서대로 명령어를 입력해서 Docker 이미지 생성 및 배포를 진행하면 된다. 1. D.. ⚙️OS/Windows 2024. 4. 19. [Windows] Windows에서 jar파일을 AWS 서버에 배포하기 - (1) 배포를 위한 기본 세팅 AWS ECS 생성 먼저 서버를 배포하기 전에 AWS의 ECS (Elastic Container Service)를 생성해야 된다. 공식문서나 다른 블로그를 찾아보고 클러스터 및 서비스를 등록해주면 된다. https://docs.aws.amazon.com/ko_kr/AmazonECS/latest/developerguide/get-set-up-for-amazon-ecs.html Amazon ECS 사용 설정 - Amazon Elastic Container Service 테스트를 위해 짧은 시간 동안만 허용하는 경우를 제외하고는 해당 인스턴스에 대한 모든 IP 주소(0.0.0.0/0)로부터의 SSH 액세스를 허용하지 않는 것이 보안을 위해 좋습니다. docs.aws.amazon.com 프로그램 다운로드 및 설.. ⚙️OS/Windows 2024. 4. 19. [Windows] NSSM을 사용해서 windows 서비스 등록하기 NSSM the Non-Sucking Service Manager Microsoft Windows용 서비스 관리자, 윈도우 서비스 등록을 지원한다. 서비스 등록 NSSM 다운로드 https://nssm.cc/download NSSM - the Non-Sucking Service Manager NSSM - the Non-Sucking Service Manager Windows 10, Server 2016 and newer 2017-04-26: Users of Windows 10 Creators Update or newer should use prelease build 2.24-101 or any newer build to avoid an issue with services failing to start. .. ⚙️OS/Windows 2024. 3. 15. [Windows] windows 서버 안에 있는 폴더, 파일 linux 서버로 복사하기 (feat. scp) scp? Secure copy의 줄임말로 ssh를 이용해서 네트워크로 연결된 호스트 간에 파일을 주고 받는 명령어이다. ssh와 동일한 22번 포트와 identity file을 사용해서 파일을 송수신하기 때문에 안정된 파일 전송이 가능하다. scp 파일 전송 windows 👉🏻 linux 명령 프롬프트를 열고 아래의 명령어를 입력한다. > scp [옵션(생략가능)] [Windows 파일 경로] [linux ID]@[linux IP]:[linux 폴더 경로] scp로 파일 전송 시 사용 가능한 옵션은 다음과 같다. 옵션 설명 -r 디렉토리 및 하위 모든 파일을 복사한다. -P 원본 속성값을 복사한다. -p [포트번호] 지정한 포트번호로 복사한다. -c 파일을 압축해서 복사한다. -v 복사 과정을 전부 출력.. ⚙️OS/Windows 2024. 2. 22. [Linux] Cent OS 7에서 jar파일 백그라운드 실행시키기 USB 마운트 하기 https://tlseoqja.tistory.com/70 USB 파일 복사하기 먼저 USB의 파일을 복사할 폴더를 생성해준다. 필자는 usr폴더에 server 폴더를 새로 생성했다. 다음의 명령어로 jar파일과 config 파일을 복사해준다. > cd /usr/server > cp /tmp/usb/test.jar /usr/server/test.jar > cp /tmp/usb/config.properties /usr/server/config.properties cp 명령어에 첫 번째로 들어가는 이름은 복사할 경로의 파일명이고, 두 번째로 들어가는 이름은 복사될 파일명이다. 만약 두 번째 파일명에 폴더 경로를 입력하지 않고 파일명만 입력한다면 현재 경로에 파일이 복사된다. 파일을 복사했으.. ⚙️OS/Linux 2024. 1. 31. [Linux] Cent OS 7에서 USB를 사용해서 jdk 설치 JDK 설치 파일 다운로드 설치를 원하는 버전의 jdk를 찾아서 다운로드 해준다. 필자는 17버전으로 작성했고 리눅스 OS의 압축 파일(.gz)로 다운로드 했다. https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html Java Archive Downloads - Java SE 17 WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in p.. ⚙️OS/Linux 2024. 1. 31. [Windows] Windows에서 Cent OS 사용하기 (feat. Oracle VM VirtualBox) Oracle VM VirtualBox 설치 리눅스 OS 설치 및 실행을 위해 가상화 프로그램을 사용한다. 다음 사이트에 접속한 후 Windows OS 버전으로 다운로드한다. https://www.virtualbox.org/wiki/Downloads Downloads – Oracle VM VirtualBox Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. VirtualBox 7.0.14 platform packages .. ⚙️OS/Windows 2024. 1. 30. 이전 1 다음