Linux (8) 썸네일형 리스트형 [Scripts] 리눅스 버젼 체크 리눅스 버젼 체크용 스크립트 Ubuntu, CentOS 및 특정 버젼에 대한 체크 목적으로 사용 Major 및 Minor까지 체크 가능 OSVersionCheck() { OSDistribution=$(cat /etc/*release*) if [[ "$OSDistribution" == *Ubuntu* ]];then ubuntuVer=$(lsb_release -r | awk '{print $2}') if [ -z "$ubuntuVer" ];then echo '### cannot see ubuntu version, manual check ver, and script exit' exit fi case $ubuntuVer in # ubuntu 12.04 ~ 16.04 12.04* | 14.04* | 16.04*).. [k8s] Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused. 발생 시. redplug입니다. 테스트 환경은 Ubuntu 18.04.2 LTS 버젼 입니다. 쿠버네티스 설치 진행 시 kubeadm init, join 시 'http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.' 문구를 마주치게 될 수도 있는데요. (cgroup관련) 구글링 해서 전 하기와 같은 방법으로 해결 하였습니다. sudo mkdir /etc/docker cat kubeadm init or join 재실행 증상이 동일한 경우라면 재부팅 후에 진행(전 재부팅 후에 정상 설치 되었습니다.) 관련 링크 : https://kubernetes.io/docs/setup/production-environment/con.. [k8s] k8s 설치 1. 노드구성 : k8s-master, k8s-node1, k8s-node2 2. Hyper-v 에 Ubuntu 20.04 설치하여 진행 3. 3대 모두 Docker 설치 진행 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ## apt 레파지토리 업데이트 sudo apt-get update ## 사전 설치 진행 sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release ## GPG 키 추가 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ sud.. Centos7 ifconfig command not found CentOS7 설치 후 ifconfig 시 command not found가 뜰 경우 yum install net-tools 인터넷 불가 시 ip addr 또는 ip link로 확인 가능 Linux 버젼 확인 커널 정보 uname -a OS 버젼 1 cat /etc/issue OS 버젼 2 cat /etc/redhat-release OS 버젼 3 cat /etc/*release* OS bit getconf LONG_BIT 우분투(Ubuntu)에 하둡설치 테스트 1. 우분투 설치- Ubuntu Desktop 18.04 버젼 설치 하여 테스트 진행- Namenode * 1ea, DataNode * 3ea 설치 진행- 노드 Hostname IP 비고 NameNode master 192.168.0.200 DataNode 01 slave01 192.168.0.201 DataNode 02 slave02 192.168.0.202 DataNode 03 slave03 192.168.0.203 2. 패키지 업데이트 & 업그레이드sudo apt-get update && sudo apt-get upgrade 3. 레파지토리 추가 및 패키지 업데이트sudo add-apt-repository ppa:webupd8team/java sudo apt-get update자바 설치, 자바 업그.. hostname 변경 하기 우분투 호스트명 변경하기nano /etc/hostname 호스트명 변경 후 새로운 세션 열어서 확인 CentOS DNS 설정 변경 CentOS 6.5 기준으로 작성되었습니다. 공유기 설정 (IPTIME 기준) 공유기 환경 내 구축된 서버이기 때문에 외부와의 통신을 위하여 포트포워딩 설정이 필요합니다. (DNS는 TCP/UDP 53 Port를 사용) 방화벽 ACL Open# iptables -A INPUT -p udp -m state --state NEW --dport 53 -j ACCEPT # iptables -A INPUT -p tcp -m state --state NEW --dport 53 -j ACCEPT # service iptables save # service iptables restart DNS 설치 # yum -y install bind-* DNS서버 설치 확인 [root@reds-cent ~]# rpm -qa | g.. 이전 1 다음