본문 바로가기

728x90

전체 글

CentOS 7에서 virbr0 NAT 인터페이스를 비활성화하는 방법 CentOS 7에서 virbr0 NAT 인터페이스를 비활성화하는 방법 virbr0는 일반적으로 KVM (Kernel-based Virtual Machine)과 같은 가상화 솔루션에서 사용되는 NAT 네트워크 인터페이스입니다. virbr0 인터페이스 정보 확인 ifconfig virbr0 $ ifconfig virbr0 virbr0: flags=4099 mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:ab:1a:22 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX .. 더보기
[기타] iTerm2 zsh 테마(powerlevel10k) 설정하기 iTerm2 zsh 테마(powerlevel10k) 설정하기 iTerm2 설치 공식 홈페이지 : https://iterm2.com/ 또는 homebrew 명령으로 설치 brew install --cask iterm2 Oh My Zsh 설치 공식 홈페이지 : https://ohmyz.sh/ curl을 통해 oh-my-zsh 설치 sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" wget을 통해 oh-my-zsh 설치 sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" Solarized 설치 공식 홈페이지 : .. 더보기
GitLab에서 첨부 파일 크기 제한을 늘리는 방법 GitLab에서 첨부 파일 크기 제한을 늘리는 방법 1. GitLab 서버에 로그인 SSH 또는 콘솔을 사용하여 GitLab 서버에 로그인합니다. 2. GitLab 구성 파일 찾기 GitLab의 구성 파일은 일반적으로 /etc/gitlab/gitlab.rb에 있습니다. 이 파일을 텍스트 에디터로 엽니다. sudo vim /etc/gitlab/gitlab.rb 3. 첨부 파일 크기 설정 찾기 구성 파일에서 첨부 파일 크기와 관련된 설정을 찾습니다. 보통 이 설정은 gitlab.rb 파일에 존재하며 nginx 및 gitlab_workhorse 설정에서 조정할 수 있습니다. # 예: 첨부 파일 크기를 100MB로 설정하는 경우 nginx['client_max_body_size'] = '100m' gitlab_.. 더보기
[클라우드] AWS CLI로 액세스 키(Access Key, Secret Access Key) 설정 AWS CLI로 액세스 키(Access Key, Secret Access Key) 설정 기본 자격 증명 사용 액세스 키 등록 $ aws configure AWS Access Key ID [None]: AKIAAWSAccessKeyID AWS Secret Access Key [None]: 4YoZAWSSecretAccessKey Default region name [None]: ap-northeast-2 Default output format [None]: json AWS 구성 파일 : ~/.aws/config 공유 자격증명 파일 : ~/.aws/credentials 액세스 키 리스트 확인 $ aws configure list Name Value Type Location ---- ----- ---- ---.. 더보기
ssh 접속 시 no matching key exchange method found 에러 ssh 접속 시 no matching key exchange method found 에러 테스트 환경 $ cat /etc/redhat-release CentOS release 5.6 (Final) $ getconf LONG_BIT 32 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 $ ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 [에러] Unable to negotiate with 192.168.0.101 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-h.. 더보기
GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하려면 GitLab 컨테이너 내부에서 gitlab-rails 콘솔을 사용하여 비밀번호를 변경해야 합니다. GitLab 컨테이너에 로그 확인 docker-compose logs -f $ docker-compose logs -f ... gitlab | gitlab | == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb gitlab | Administrator account created: gitlab | gitlab | login: root gitlab | password: ****** gitlab .. 더보기
Mac Time Machine 백업 시간 줄이기 Mac Time Machine 백업 시간 줄이기 낮은 프로세스 우선 순위 조절을 제거하여 타임머신 속도를 향샹 설정 sudo sysctl debug.lowpri_throttle_enabled=0 > sudo sysctl debug.lowpri_throttle_enabled=0 Password: debug.lowpri_throttle_enabled: 1 -> 0 확인 sysctl debug.lowpri_throttle_enabled > sysctl debug.lowpri_throttle_enabled debug.lowpri_throttle_enabled: 0 더보기
CentOS 7에 Apache2의 확장 모듈인 Evasive를 설치하는 방법 CentOS 7에 Apache2의 확장 모듈인 Evasive를 설치하는 방법 EPEL 저장소 설치 yum install -y epel-release 필수 패키지 설치 yum install -y httpd httpd-devel Evasive 모듈 설치 yum install -y mod_evasive Evasive 활성화 및 설정 vim /etc/httpd/conf.d/mod_evasive.conf LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so apachectl -M | egrep evasive $ apachectl -M | egrep evasive evasive20_module (shared) Evasive 모듈에 대한 설정 m.. 더보기

728x90