본문 바로가기

OS-OE Knowledge/Linux-Unix KB117

How realize Gateway of current Network 현 네트워크의 Gateyway 알아내기 route 명령은 Kernel 버전에 따라 정보를 제대로 보여주지 못함. 버전에 관계 없이, "netstat -rn" 또는 "ip route"를 통해 확인이 가능함 RHEL 7.5 # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.171.6.1 0.0.0.0 UG 0 0 0 eno1 192.171.6.0 0.0.0.0 255.255.254.0 U 0 0 0 eno1 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eno1 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 vir.. 2018. 9. 21.
RHEL/Short Durations of Throttling (TCC Activation) Linux 운영 중 아래와 유사한 이벤트가 발생될 수 있다. -------------------------------------------------------------- Jun 20 10:43:56 localhost kernel: CPU57: Package temperature above threshold, cpu clock throttled (total events = 1) Jun 20 10:43:56 localhost kernel: CPU57: Core temperature/speed normal Jun 20 10:43:56 localhost kernel: CPU57: Package temperature/speed normal ---------------------------------------.. 2018. 9. 21.
ProLiant/Linux 운영 중 MCE log 발생 MCE 관련 로그는 OS의 메모리 모니터링 기술 EDAC 기능에 의해 기록 되는데, 이 기술은 하드웨어의 메모리 모니터링 기술보다 정밀하지 못하다. 간혹 실제 오류가 없음에도 OS의 EDAC의 민감한 엔진에 의해 오류를 기록하는 경우가 있다. 메시지 발생 시 하드웨어 정보(IML, Front LED)를 통해 중복 확인하여 이상이 없는 경우 해당 메시지는 무시하거나, OS의 MCE 감지 기능을 비활성화 하고 사용하는 것이 좋다. Advisory: (Revision) ProLiant G6,G7, Gen8 and Gen9 Servers - Correctable Machine Check Errors That Do Not Require Customer Action May Erroneously Be Logged t.. 2018. 9. 14.
Create Dummy Big files Create Dummy Big files dd if=/dev/zero of=dummy1G.txt count=1024 bs=1048576 for SSD, no bytes are physically written on the medium at all, so no have to be deleted dd if=/dev/zero of=dummy1T.txt bs=1 count=0 seek=1T dd if=/dev/zero of=dummy1G.txt bs=1 count=0 seek=1G for i in {1..100}; do dd if=/dev/zero of=dummy1G-$i bs=1 count=0 seek=1G; done written to media fallocate -l 4G dummy4G.txt for i .. 2018. 6. 8.
RHEL7/Copy/Move/Remove - Entire Directory cp -r source_directory target_directorymv source_directory target_directoryrm -rf target_directory출처: 리눅스에서 폴더 통째로 복사하기 https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4%EC%97%90%EC%84%9C_%ED%8F%B4%EB%8D%94_%ED%86%B5%EC%A7%B8%EB%A1%9C_%EB%B3%B5%EC%82%AC%ED%95%98%EA%B8%B0 2018. 6. 8.
Gen10/Install RHEL 7.3 use DUD 1. RHEL 7.x Media로 부팅 후 설치 메뉴 출력 때 'e' 키를 입력한다. - Highlight "Install Redhat enterprise linux 7.0" - Press "e" to edit grub - append the following install parameters at the end of the "linuxefi" line -- modprobe.blacklist=ahci inst.dd -- "setparams 'Install Red Hat Enterprise Linux 7.0' -- linuxefi /Images/pxeboot/vmlinuz inst.stage2=hd:LABEL-RHEL-7.0\x20Server .x86_64 quiet modprobe.blacklist=ah.. 2018. 6. 8.
Ubuntu/Useful Commands for initial Setup Disable/Manage Ubuntu firewall --------------------------------------- # sudo ufw disable or # sudo ufw enable # sudo ufw allow 22 --------------------------------------- Install Ubuntu Desktop(Unity) --------------------------------------- # sudo apt-get install ubuntu-desktop --------------------------------------- Install ssh --------------------------------------- # sudo apt-get install open.. 2018. 6. 7.
ssh connects to remote host - passwordless 계정 질의 없이 원격 호스트 접속하기Environment: My Host : 10.10.10.11 Remote Host : 10.10.10.12 1. 인증키 생성 (My Host) e.g.) # ssh-keygen -t rsa2. 연결 # ssh @e.g.) # ssh root@10.10.10.12 # exit (접속해제)3. 키 업로드 # cat .ssh/id_rsa.pub | ssh @ 'cat >> .ssh/authorized_keys'e.g.) # cat .ssh/id_rsa.pub | ssh root@10.10.10.12 'cat >> .ssh/authorized_keys'4. 권한 설정 # ssh root@10.10.10.12 "chmod 700 .ssh; chmod 640 .ssh/autho.. 2017. 4. 9.
RHEL/Linux Hostname Change RHEL 6.x 이하, /etc/sysconfig/network HOSTNAME= RHEL 7.x 이상, /etc/hostname hostnamectl set-hostname 2017. 4. 8.
반응형