본문 바로가기

Linux

centos 6.x to 7 upgrade centos 6.x 에서 7 으로 업그레이드 하는 방법이다. 우선 최신 버전으로 업그레이드 하자. # yum upgrade -y 최신 버전으로 업그레이드 완료 되면 service snmpd restart chkconfig snmpd on -- 업그레이드 툴 설치 # yum install redhat-upgrade-tool preupgrade-assistant-contents Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, product-id, refresh-packagekit, security, subscription-manager, tmprepo, verify, versionlock This system is not registered.. 더보기
kipmi0 CPU 100% Centos 6.5 버전에 버그kipmi0 가 CPU 90~100% 잡는 버그가 있음 # yum install -y lm_sensors# vi /etc/sysconfig/lm_sensorsMODULE_0=ipmi-silMODULE_1=ipmisensorsMODULE_2=coretemp추가# echo 100 > /sys/module/ipmi_si/parameters/kipmid_max_busy_us 재부팅 마다 적용하려면# vi /etc/rc.localecho 100 > /sys/module/ipmi_si/parameters/kipmid_max_busy_us추가 더보기
phabricator 설치 하기 https://www.vultr.com/docs/how-to-install-and-configure-phabricator-on-centos-7설치 방법을 보고 참고를 하였다 미리 설치 해야 할것 들도 많고 하니 아래 링크에서 스크립트를 이용해서 자신의 환경에 맞는 스크립트로 설치 하자. https://github.com/phacility/phabricator/tree/master/scripts/install 위 사이트에 가서 스크립트를 다운받아서 설치 하자. 참 설치를 해도 안깔린것들도 많고 안되는것도 많다..... 속편하게 비트나비에서 지원하는 버전으로 설치를 하자... 리셋!! https://bitnami.com/stack/phabricator위 사이트에서 다운 run 파일을 다운 받자. # wget.. 더보기
git fatal: unable to access Peer reports incompatible or unsupported protocol version. git fatal: unable to access Peer reports incompatible or unsupported protocol version.라고 에러 뜨면서 git 이 안되는 경우가 있다. # yum upgrade 해서 업그레이드 하면 되지만 패키지 모두 설치 하는데 시간이 오래 걸린다. # yum update -y nss curl libcurl만 설치 하면 정상적으로 git 이 된다. 더보기
네트워크 대역폭 측정 https://iperf.fr/iperf-download.php위 사이트에서 자신의 환경에 맞게 파일을 다운 받자. PC가 2대가 필요 하다. 측정하고 싶은 대역에 있는 PC한 대는 서버로 아래와 같이 설정을 하고iperf3.exe -s (192.168.0.10) 나머지 PC에서는 iperf3.exe -c 192.168.0.10를 해주면 된다. 그럼 아래와 같이 대역폭이 측정이 된다. C:\iperf-3.1.3-win64>iperf3.exe -s-----------------------------------------------------------Server listening on 5201-----------------------------------------------------------Accep.. 더보기
hostid 변경방법 source code #!/bin/bash## Purpose: Write the passed in parameter as hostid to /etc/hostid# If no parameter is passed, write current hostid to /etc/hostid# Author: Fazle Arefin if [[ -n "$1" ]]; then host_id=$1 # chars must be 0-9, a-f, A-F and exactly 8 chars egrep -o '^[a-fA-F0-9]{8}$' &2 exit 0 위 소스코드를 복사해서 파일에 복사 하자 # vi hostid.sh# chmod 755 hostid.sh# hostid02343f0c# ./hostid.sh 0011aabb0011.. 더보기
centos7 커널 버전 내리기 grub 커널 업데이트를 했는데 내리고 싶다.하는 방법은 693 버전을 229 버전으로 내리자# uname -aLinux iptest_165 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 버전 리스트를 확인 하자.# grep ^menuentry /boot/grub2/grub.cfg | cut -d "" -f2 --> 보통# grep ^menuentry /boot/efi/EFI/centos/grub.cfg | cut -d "" -f2 --> efi menuentry 'CentOS Linux 7 (Core), with Linux 3.10.0-693.17.1.el7.x86_64' --cla.. 더보기
Are you sure you want to continue connecting (yes/no)? Are you sure you want to continue connecting (yes/no)?자꾸 물어본다.. 너무 귀찮다. 안나오게 하자. # cd /root/.ssh# vi configHost 192.168.0.* StrictHostKeyChecking no UserKnownHostsFile /dev/null 추가 하자 그러면# ssh 192.168.0.60Warning: Permanently added '192.168.0.60' (RSA) to the list of known hosts.root@192.168.0.60's password: 안물어보고 바로 접속이 가능하다. 더보기

728x90
320x100