[Linux] 잡다한 해결법
·
카테고리 없음
Windows 에서 작성한 txt 파일을 Linux 로 옮긴 후 bash 실행 시 오류 발생 (vim 열 때 dos 로 보임)\r 이 안보이게 들어가 있으면 제거 후 다시 시도cat test.txt | tr -d '\r' > test2.txt
HPE SUM 20.0.0 (Beta) 사용해 보기
·
SERVER/HPE
Introhttps://support.hpe.com/connect/s/softwaredetails?collectionId=MTX-8ee69bedeebe4243 https://support.hpe.com/connect/s/softwaredetails?collectionId=MTX-8ee69bedeebe4243 support.hpe.com SUM(Smart Update Manager)을 통한 HPE Gen10, Gen10+, Gen11, Gen12 장비 펌웨어 일괄 업데이트를 가능하게 해주는 툴DHCP Server 와 같이 사용한다면, 각 서버의 S/N와 iLO PW 만 수집하여 업데이트 대상 등록 가능최대 10대까지 업데이트 지원 가능.(업데이트 완료 이후 연결 대상 삭제)HPE Compute Ops Ma..
[Rocky Linux] Nginx 구성
·
카테고리 없음
저장소 추가cat /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=https://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.keymodule_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=https://nginx.org/packages/mainline/centos/$releasever/$basearch/gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/ng..
[Rocky Linux] mysql 구성
·
카테고리 없음
yum 리포 구성 Rocky 9 / mysql 8.4rpm -Uvh https://dev.mysql.com/get/mysql84-community-release-el9-4.noarch.rpm # 모든 버전 비활성화sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/mysql-community.repo # mysql 8.4 활성화 하기vim /etc/yum.repos.d/mysql-community.repo# 8.4 관련된거 다 enabled=1 설치하기dnf install -y mysql-cluster-community-client mysql-cluster-community-devel mysql-cluster-community-server mysql-cluster-c..
[Rocky Linux] tomcat 구성
·
카테고리 없음
Tomcat 9 + JDK17jdk 설치dnf install -y java-17-openjdk java-17-openjdk-devel tomcat 다운 및 압축 해제useradd tomcatcd ~tomcatVERSION=$(curl -s https://dlcdn.apache.org/tomcat/tomcat-9/ | grep -oP 'v9\.\d+\.\d+' | sort -V | uniq | tail -1)wget https://dlcdn.apache.org/tomcat/tomcat-9/${VERSION}/bin/apache-tomcat-${VERSION#v}.tar.gzmv apache-tomcat-${VERSION#v} tomcat9 systemd 생성cat /etc/systemd/system/to..
[Rocky Linux] 초기 설정
·
카테고리 없음
검증Rocky 8 Rocky 9ORocky 10 # 추가 패키지 설치dnf install -y tar vim unzip net-tools psmisc iptraf-ng wget sysstat tcpdump lsof smartmontools iptraf pciutils rsyslog# 시간대 설정timedatectl set-timezone Asia/Seoul# 호스트이름 변경hostnamectl set-hostname # ls 출력 자세히cat > /etc/bashrcalias ls='ls --color=auto --time-style=long-iso' EOF# vim 커스텀cat > /etc/vimrc" customsyn onnohset nocompatiblecolorscheme eveningset p..
[Rocky Linux] 정리 모음
·
OS
초기구성 [Rocky Linux 9] 초기 설정# 추가 패키지 설치dnf install -y vim unzip net-tools psmisc iptraf-ng wget sysstat tcpdump lsof smartmontools iptraf pciutils rsyslog# 시간대 설정timedatectl set-timezone Asia/Seoul# 호스트이름 변경hostnamectl set-hostname # ls 출력blog.creeper.kr 네트워크구성 con, modify " data-og-host="blog.creeper.kr" data-og-source-url="https://pms3298.tistory.com/32" data-og-url="https://blog.creeper.kr/32" ..
[Linux] 출력 자르기
·
카테고리 없음
sed -i '/^\[main\]/a log_rotate=0' /etc/dnf/dnf.conf ^맨 앞부터 일치 a찾은 위치 아래에 넣기
[LINUX] 2026년도 보안 취약점 조치
·
카테고리 없음
다음 문서를 참조하여 만듭니다.https://www.kisa.or.kr/2060204/form?postSeq=22&page=1#fnPostAttachDownloadU-01 root 계정 원격 접속 제한기준 : root 직접 접속을 허용하고 원격 서비스를 사용하는 경우 "취약" Rocky 8 / 9, Ubuntu 24.04# PermitRootLogin yes : 취약egrep -ne "^[^#]*PermitRootLogin" /etc/ssh/sshd_config /etc/ssh/sshd_config.d/* 2>/dev/null# PermitRootLogin yes 가 한줄만 나올 시 자동 조치p_cmd=$(egrep -ne "^[^#]*PermitRootLogin" /etc/ssh/sshd_config ..
[Rocky 10] Kubernetes 를 해보자
·
카테고리 없음
INTRO토막난 글입니다.kube 1.35cri-o 사용 설치 과정내부 설정sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/configsystemctl stop firewalld && systemctl disable firewalldswapoff -ased -i '/ swap /s/./#&/' /etc/fstabcat kernel.unprivileged_bpf_disabled : calico 설치 시 EBPF 비활성화로 설치가 안된다. 2 -> 1로 바꾸면 설치 된다. 재부팅 필요 컨테이너 런타임참고: Dockershim은 쿠버네티스 릴리스 1.24부터 쿠버네티스 프로젝트에서 제거되었다. 더 자세한 내용은 Dockershim 제거 FAQ를..