반응형

분류 전체보기 160

nginx 설치 및 tomcat 연동

[root@pororicom /]# yum list installed | grep nginx [root@pororicom /]# vi /etc/yum.repos.d/nginx.repo # 아래 내용작성 저장소 생성 * nginx 공식사이트에서 확인 할것. # centos 7 기반 - baseurl [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 [root@pororicom /]# yum install -y nginx - nginx 설치 [root@pororicom /]# systemctl start nginx - nginx 서비스 실행. [root@pororicom /]# fi..

mariaDB 복제 (replication)

centos7 / mariadb 10.4 기준 # 복제 사용자 생성 MariaDB [(none)]> grant replication slave, replication client on *.* to '아이디'@'%' identified by '비밀번호'; MariaDB [(none)]> grant all privileges on visnag.* TO '아이디'@'%'; MariaDB [(none)]> flush privileges; # 서버 아이디 점검 MariaDB [(none)]> show variables like 'server_id'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | server_id | ..

database/mariaDB 2020.12.04

docker back-up 및 load

1. 현재 운영중인 컨테이너를 이미지 백업 받는다. -- m 메시지(어떤이미지인지) -a (누가작성) from 어떤컨테이너 에서 to 이미지를 만든다. [root@pororicom ~]# docker commit -m "centos,nginx" -a "kei" centosd centosweb [root@pororicom ~]# docker images 2. 이미지를 디스크에 저장한다. [root@pororicom ~]# docker save -o centosimg.tar centosweb 3. 디스크에 저장된 이미지를 로드한다. [root@pororicom ~]# docker load –i centosimg.tar [root@pororicom ~]# docker images

environment/java 2020.12.02

spring boot Jar 실행 시 Witelabel Error Page (404 Not Found) 에러 ( JSP )

JSP로 만들어진 사이트의 경우 위와 같이 build 환경을 구성하고 Excutable JAR 로 배포하면 “jsp 404 Not Found Error”에러가 발생한다. 이유는 JSP 를 지원하지 않기 때문이다. 초기 프로젝트 생성시 gradle.build 의 경우 아래와 같이 구성되어 있다. plugins { id 'org.springframework.boot' version '2.4.0' id 'io.spring.dependency-management' version '1.0.10.RELEASE' id 'java' } group = 'com.example' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8' repositories { mavenCentra..

program/spring 2020.12.02

CentOS7에서 Docker 로 Jenkins 서비스 등록 ( gradle, github 이용 )

설치 전 docker, docker-compose 가 설치되어 있어야 합니다. Dockerfile FROM jenkins:latest MAINTAINER kei ENV JENKINS_OPTS --httpPort=18080 ENV JENKINS_SLAVE_AGENT_PORT 50001 EXPOSE 18080 50001 USER root RUN apt-get update && apt-get -y install vim docker-compose.yml # docker-compose compile version version: '3.1' # docker container == service services: jenkins: # service name container_name: ..

environment/java 2020.12.02

Git 저장소 프로젝트 올리기, 내려받기, 브랜치 생성

우선 https://github.com에 회원가입을 한후 ========================================================================== 기존 소스를 새 저장소에 업로드 하기 1. 소스를 Git에 업로드하기위해 새저장소를 생성한다 위 주소는 “https://github.com/kimsy-visang/demo-sb.git” 이클립스연동을 위해 필요한 주소가 된다. 2. 이클립스를 열고 Window > Show View 로 Git Repository, Git Staging 을 열어놓는다. 3. 프로젝트를 저장소에 연결작업을 진행한다. 프로젝트 마우스 우클릭하여 Team > Share Project 선택 4. 로컬저장소설정 Create Repository ..

environment/java 2020.11.27