분류 전체보기 썸네일형 리스트형 CentOS 7에서 Bash 자동 완성 기능을 사용하는 방법 CentOS 7에서 Bash 자동 완성 기능을 사용하는 방법CentOS 7에서 Bash 자동 완성 기능을 활성화하려면 bash-completion 패키지를 사용하여 자동 완성을 활성화할 수 있습니다.bash-completion 패키지 설치sudo yum install -y bash-completion bash-completion-extrasbash-completion 활성화bash_completion.sh 편집find / -name bash_completion.sh$ find / -name bash_completion.sh/etc/profile.d/bash_completion.shvim /etc/profile.d/bash_completion.sh# Check for interactive bash and .. 더보기 [Kubernetes] kubernetes localhost:8080 was refused 오류 kubernetes localhost:8080 was refused 오류 $ kubectl get pods The connection to the server localhost:8080 was refused - did you specify the right host or port? 환경 변수 등록 $ mkdir -p $HOME/.kube $ sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config^C $ chown $(id -u):$(id -g) $HOME/.kube/config kubectl get pods 명령 실행 $ kubectl get pods NAME READY STATUS RESTARTS AGE nginx 1/1 Running 0 12h 더보기 [Kubernetes] kubernetes nginx 배포 테스트 -2 kubernetes nginx 배포 테스트 -2 nginx 컨테이너 실행 root@bk8sm1:~$ kubectl run nginx-app --image nginx --port=80 pod/nginx-app created ###kubectl get pods -o wide root@bk8sm1:~$ kubectl get pods --output=wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES nginx-app 1/1 Running 0 14m 10.244.2.2 bk8sn3 Serveivce 실행 root@bk8sm1:~$ kubectl expose pod nginx-app service/nginx-app exposed r.. 더보기 [Kubernetes] Kubernetes docker cgroupfs 오류 docker cgroupfs 오류$ kubeadm init --apiserver-advertise-address=10.255.255.111 --pod-network-cidr=10.255.1.0/24W1004 20:24:32.378748 9552 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io][init] Using Kubernetes version: v1.19.2[preflight] Running pre-flight checks [WARNING IsDockerSystemdCheck]: detected ".. 더보기 우분투에 쿠버네티스 클러스터를 구성하는 방법 우분투에 쿠버네티스(k8s) 클러스터를 구성하는 방법컨트롤 플레인(Control Plane)/워커 노드(worker nodes) 적용컨트롤 플레인knode111워커 노드knode112, knode121, knode122컨테이너 런타임containerd네트워크 플러그인Calico1. 호스트명 변경sudo hostnamectl set-hostname {호스트이름}2. 호스트(/etc/hosts) 파일 수정vim /etc/hosts# kubernetes cluster192.168.0.111 knode111192.168.0.112 konde112192.168.0.121 knode121192.168.0.122 node122또는cat > /etc/hosts# kubernetes cluster192.168.0.111.. 더보기 [VPN] SoftEther VPN 설치 및 설정-3 VPN Administrator 패스워드 변경 $ ./vpncmd VPN Server>serverpasswordset ServerPasswordSet command - Set VPN Server Administrator Password Please enter the password. To cancel press the Ctrl+D key. Password: ********* Confirm input: ********* The command completed successfully. 더보기 [Hyper-V] Windows 10에서 Hyper-V 가상스위치(브릿지 모드) 설정 Hyper-V 가상스위치(브릿지 모드) 설정 브릿지 모드 : VM - 가상 스위치 - 호스트 네트워킹 가상 스위치 > 새 가상 네트워크 스위치 가상 스위치 속성 > "이름" 변경 네트워킹 변경 내용 적용 더보기 웹 서버에서 HSTS(HTTP Strict Transport Security)를 설정하는 방법 웹 서버에서 HSTS(HTTP Strict Transport Security)를 설정하는 방법 HSTS(Strict Transport Security)는 웹 사이트의 보안을 강화하기 위한 메커니즘 중 하나로, HTTPS를 통해 통신하는 것을 강제하고 중간자 공격을 방지하는 기능을 제공합니다. HSTS를 설정함으로써 클라이언트(웹 브라우저)는 지정된 기간 동안 해당 웹 사이트와의 모든 통신을 HTTPS를 통해서만 수행하도록 강제됩니다. Redirect HTTP connections to HTTPS Apache 설정 ServerName example.com RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [.. 더보기 이전 1 ··· 184 185 186 187 188 189 190 ··· 279 다음