반응형

ubuntu 5

Linux) 시작 프로그램 등록

우분투 init.d 시작 프로그램 등록 1. init.d 디렉토리 이동 cd /etc/init.d 2. 실행할 스크립트 생성 > 스크립트 첫 줄 "#!/bin/sh" 필수! vi springboot.sh 3. 스크립트 실행 권한 부여 chmod +x springboot.sh 4. 시작 프로그램 등록 update-rc.d springboot.sh defaults 5. 등록 확인 ls /etc/rc*.d | grep 스크립트명 * update-rc.d 명령으로 프로그램 등록이 안될 시 cd /etc/rc2.d > rc2.d : 기본 런레벨 ln -s /etc/init.d/springboot.sh S10springboot.sh > 심볼릭 링크 등록 ls /etc/rc*.d | grep spring > 등록 확인

C & Docker & LINUX 2021.11.10

nginx) NGINX reverse proxy 설정

NGINX reverse proxy 설정 아래와 같은 구성을 하는 경우 springboot에 접속하기 위해 nginx 설정이 필요하다. NGINX nginx.conf 설정 * OS : ubuntu 18.04 * nginx.conf 경로 : /etc/nginx/nginx.conf > nginx 80번 포트 인입시 springboot 8080로 포워딩 * nginx.conf 수정 후 nginx 재기동 (service nginx restart) http { server { listen 80; location / { proxy_pass http://localhost:8080/; } } } 도움되셨다면 공감 꾹! 눌러주세요~

C & Docker & LINUX 2021.11.08

Linux) 우분투(Ubuntu) SSH 서버 설치 및 root 접속 허용

- Ubuntu 설치 후 SSH 접근을 위해 openssh-server 설치 필요. - 설치 후 root 계정에 대한 접근 허용 또한 필요 아래 블로그에 잘 설명이 되어있으니 참고부탁드립니다. https://sseungshin.tistory.com/69 Ubuntu(우분투) - ssh 서버 설치/root 계정 접속 허용하기 openssh-server 설치 우분투를 기본으로 설치하면, 대부분 ssh 서버가 설치되어 있지 않습니다. dpkg 명령어를 이용하여 openssh-server 패키지가 설치되어 있는지 확인 후, 설치되어 있지 않다면 패키지 �� sseungshin.tistory.com * 위 설정 후 접속 불가 시 우분투 방화벽 설정 확인필요.

C & Docker & LINUX 2020.07.21
반응형