반응형

Linux 439

프로메테우스(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

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

linux 랜카드(wifi) 모델 확인하기(lshw -C network)

linux 랜카드(wifi) 모델 확인하기(lshw -C network) 기본적으로 리눅스에서 네트워크 모델 확인 하는 방법은 lspci 를 이용한다. # lspci 하면 위와 같이 나온다. # lspci | grep Ethernet 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) 하면 네트워크가 1개 밖에 안나오는데 # ifconfig enp0s20f0: flags=4099 mtu 1500 ether 00:e0: txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame ..

Linux 2023.10.26

jenkins reset root password systemctl restart jenkins

jenkins reset root password jenkins admin 계정 암호 리셋하는 방법이다. # vi /var/lib/jenkins/config.xml true 이부분을 false 로 수정해주자. 그리고 저장하고 나와서 서비스 재시작 # systemctl restart jenkins 그러면 로그인 없이 접속이 가능하다. 사람항목에 들어가서 admin 계정을 삭제를 해주자 그리고 jenkins 관리에 들어가서 Security - Security 들어가자 맨위에 위와 같이 옵션을 수정을 하고 저장을 누르면 계정을 생성할 수 있다. 생성하면 성공이라고 뜨고 관리자 권한의 계정으로 로그인이 된것을 확인 할 수 있다.

Linux 2023.10.19

pip offline install 방법

pip offline install 방법 폐쇠망에서 pip 로 설치를 해야 하는데 인터넷이 연결이 안된 환경이라면 우선 pip 로 다운을 하고 나서 설치를 하면 된다. 다운 하는 명령어는 pip download -d . 패키지이름 # pip3 download -d . python-jenkins 다운 된 python_jenkins-1.8.1-py3-none-any.whl 파일을 폐쇠망에 복사를 하고 # pip3 install --no-index --find-links=./ python-jenkins 위 명령어 입력하면 설치가 완료 된다.

Linux 2023.10.12

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb. 프로그램 구동시 위와 같이 에러가 발생이 된다면 # yum install PyQt5 설치 해주면 정상 작동 된다.

Linux 2023.09.24

gcc 11 install centos 7

gcc 11 install centos 7 centos7 환경의 gcc는 4.8.5 버전이다. 최신 gcc 11버전 설치 하는 방법은 # yum install centos-release-scl-rh # yum install devtoolset-11-gcc-c++ 설치가 된다 설치가 끝난다음에 gcc 버전 확인 하면 아직도 4.8.5 버전이다. 설정을 해줘야 한다. # scl enable devtoolset-11 bash 위와 같이 명령어 쳐주면 적용이 된다. 만약에 csh 로 하고 싶다면 scl enable devtoolset-11 csh 해주면 된다.

Linux 2023.09.15
728x90
반응형