전체 글9 Jenkins [2] gitlab 서버 연동 방법 1 1) gitlab에서 Access Token 발급 개인 계정으로 접속 Settings -> Access Token 모든 값 입력 Scopes 모두 체크 Create project access token 활성화 되면 클릭하여 token 생성 해당 페이지를 계속 띄우고 있거나 토큰 복사 2) Jenkins에서 gitlab에서 받은 Token 넣기 Jenkins 관리 -> Manage Credentials Domain 컬럼에 마우스 놓고 아래 화살표 뜨면 클릭하여 Add credentials 클릭 Kind를 GitLab API token 으로 설정 Scope는 Global (Jenkins, nodes, items all child items, etc) 로 설정 API token에 1) 에서 받은 토큰.. 2021. 10. 1. Jenkins [1] 설치 CentOS 7 sudo yum update sudo yum install nmap sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat-ci.org/redhat/jenkins-ci.org.key sudo yum install jenkins rpm -qa | grep jenkins rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key 위 설치가 끝나면 /etc/sysconfig/jenkins 에서 port 번호 세팅 jenkins 실행 sud.. 2021. 10. 1. Linux - Critical(process disconnect) 처리 운영 서버 상에서 데이터 계속 들어오지만, 웹서버에서 critical error가 뜬 경우 python3으로 실행 시 터미널이 끊기면 hangon.py가 계속 죽어서 웹서버에 critical 알람이 뜰 수 있다. 처리 1 : 기본적으로 터미널에서 세션 로그아웃이 발생하면 리눅스는 해당 터미널에서 실행한 프로세스들에게 HUP signal이 전달하여 종료시키게 되는데 이 HUP signal을 프로세스가 무시(ignore)하도록 하는 명령어라서 nohup이라는 이름인 것이다. 결과적으로 터미널에서 연결이 끊기거나 터미널을 종료해도 실행했던 프로세스들이 계속 실행될 수 있는 것이다. → nohup 명령어를 사용하여 실행 nohup [processName] & 위 명령어는 터미널의 세션 연결이 끊어지더라도 지속적.. 2021. 9. 28. FMS[2] (Facilty Management System) RS-485 RS-485 IDC 센터에서 근무하며 온습도계, 항온항습기, 정류기 등의 설비추가를 통해 배운 지식을 바탕으로 작성하였습니다. import ConfigParser from pymodbus.client.sync import ModbusSerialClient as ModbusClient import socket import time class temperature def __init__(self): self.__main_ser_ip__ = "" self.__main_ser_port_ = "" self.__sub_ser_ip__ = "" self.__sub_ser_port__ = "" self.__server_id__ = "" self.__dev_type__ = "" self.__floor__ = "" sel.. 2021. 9. 28. 이전 1 2 3 다음