Linux 488

Makefile:67: *** Kernel header files not in any of the expected locations.Makefile:68: *** Install the appropriate kernel development package, e.g.Makefile:69: *** kernel-devel, for building kernel modules and try again. Stop.

# make Makefile:67: *** Kernel header files not in any of the expected locations. Makefile:68: *** Install the appropriate kernel development package, e.g. Makefile:69: *** kernel-devel, for building kernel modules and try again. Stop. # yum install kernel* 설치하고 나면 # make 정상 작동 된다.

Linux 2024.02.12

yum centos 6 removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt

# yum update Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base centos 6 ..

Linux 2024.02.11

Warning: Error fetching server time: Detected 51.34500002861023 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results.

프로메테우스 rockey 환경에서 구동을 하면 위와 같이 경고가 발생 하는 경우가 있다. Warning: Error fetching server time: Detected 51.34500002861023 seconds time difference between your browser and the server. Prometheus relies on accurate time and time drift might cause unexpected query results. 말그대로 시간 동기화 문제가 있어서 그렇다. rockey 8.x 버전은 ntp 가 없다 시간 동기화 하려면 chrony 를 설치하고 작업을 해줘야 한다. # yum install chrony chrony 먼저 설치 해주고 # vi /etc/c..

Linux 2023.12.25

프로메테우스(Prometheus) 설치 rocky 8.9 환경

프로메테우스(Prometheus) 설치 rocky 8.9 환경 환경에서 작업을 했다. 우선 계정을 만들고 # useradd -m -s /bin/false prometheus 구성 데이터 폴더 만들고 # mkdir /data/prometheus 권한 설정 # chown prometheus /data/prometheus/ 이제 설치 파일 다운 https://github.com/prometheus/prometheus # wget https://github.com/prometheus/prometheus/releases/download/v2.48.1/prometheus-2.48.1.linux-amd64.tar.gz -P /tmp # cd /tmp/ tmp 가서 압축 풀고 # tar -xvf prometheus-2..

Linux 2023.12.24

gitlab backup & restore 방법

gitlab backup & restore 방법gitlab 백업과 복원 방법은 간단하다.# gitlab-backup create 2023-12-01 10:36:40 UTC -- Dumping database ... Dumping PostgreSQL database gitlabhq_production ... [DONE] 2023-12-01 10:36:43 UTC -- Dumping database ... done 2023-12-01 10:36:43 UTC -- Dumping repositories ...2023-12-01 10:36:47 UTC -- Dumping repositories ... done 2023-12-01 10:36:47 UTC -- Dumping uploads ... 2023-12-01 ..

Linux 2023.12.04

Running with Java 8 from /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el8_7.x86_64/jre, which is older than the minimum required version (Java 11)

service jenkins start jenkins.service: Main process exited, code=exited, status=1/FAILURE jenkins.service: Failed with result 'exit-code'. Failed to start Jenkins Continuous Integration Server. Running with Java 8 from /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el8_7.x86_64/jre, which is older than the minimum required version (Java 11). rockey8.7 버전에서 jenkins 를 설치를 하고 구동을 하려고 하면 위와 같이 에러가 ..

Linux 2023.11.19

openvas upgrade error Connecting to dl.greenbone.net (dl.greenbone.net)|89.146.224.58|:80... failed: Connection timed out

openvas upgrade error Connecting to dl.greenbone.net (dl.greenbone.net)|89.146.224.58|:80... failed: Connection timed out 오랜만에 openvas 써보려고 했더니 작동이 안된다. 업데이트를 하고 진행 하려고 하니 # /usr/sbin/greenbone-nvt-sync위와 같이 접속 에러가 뜬다. 찾아보니 버전이 너무 낮고 사이트도 변경이 되었다. repo 사이트도 변경되었다. https://greenbone.github.io/docs/latest/22.4/source-build/index.html Building 22.4 from SourceBuilding the Greenbone Community Editio..

Linux 2023.11.18

openvas docker install for ubuntu 22.04

openvas docker install for ubuntu 22.04 openvas docker 로 설치 하는 방법이다. ubuntu 22.04 환경에서 작업을 했다. 우선 기본적인 업데이트 먼저 시작 # apt update -y && sudo apt dist-upgrade -y 다 설치가 됐으면 docker 설치 # apt install docker.io docker 설치 완료 됐으면 openvas 설치 # docker run -d -p 443:443 --name openvas mikesplain/openvas 설치가 다 됐으면 방화벽을 잠시 내리고 # ufw disable fireforx 를 열어 https://localhost ssl 인증 에러 때문에 이렇게 뜨는데 advanced 로 들어가서 a..

Linux 2023.10.31

jenkins https 적용 방법

jenkins https 적용 방법 기존 낮은 버전에서는 /etc/sysconfig/jenkins 에 설정 파일이 있어서 해당 경로에서 수정을 했는데 최신 버전은 경로가 변경되었다. # vi /usr/lib/systemd/system/jenkins.service 위 경로에 설정을 수정을 해주면 된다. Environment="JENKINS_HTTPS_PORT=443" https 포트를 설정해주면 된다 https로 해줄거면 443 그대루 두면 된다. #충돌이 나면 변경해줘야 한다. Environment="JENKINS_HTTPS_KEYSTORE=/path/to/keystore.jks" 인증서 파일 경로 이다. 인증서 생성은 찾아보자 ㅎㅎㅎㅎ 다음에 올리도록 하겠다. Environment="JENKINS_HT..

Linux 2023.10.28
728x90
반응형