본문 바로가기
반응형

전체 글194

putty 자동로그인 putty 자동로그인 1.서버에 key 생성 상황 root로 서버에 로그인한 상태 (명가지 질문에 모두 엔터) # ssh-keygen 2. 파일명 변경 경로 # ce /root/.ssh 파일명 변경 id_rsa와 id_rsa.pup두개의 파일잉 있다. id_rsa.pup > authorized_keys # mv id_rsa.pup authorized_keys 3. 로컬에 파일 복사 winscp등으로 파일을 가지고 온다. - 대상파일 id_rsa 4. key 생성 ptty key generator putty 다운로드링크 Download PuTTY: latest release (0.78) This page contains download links for the latest released version o.. 2023. 8. 3.
리눅스 호스트 이름 변경 리눅스 호스트 이름 변경 1. 호스트 이름 변경 호스트 이름 설정 # hostnamectl set-hostname 호스트이믈 예 # hostnamectl set-hostname main1 # hostnamectl set-hostname main2 2. 변경 확인 # uname -n 2023. 8. 2.
Olacle VM VirtualBox(오라클 VM) (CentOS) 초기 설정 Olacle VM VirtualBox(오라클 VM) (CentOS) 초기 설정0. 초기 인터넷 사용 설정ifup enp0s3 편의상을 위한 설정1. root 자동 로그인1. vi편집기 실행# vi /etc/systemd/system/getty.target.wants/getty\@tty1.service 2. ExecStart 검색(vi편집기 들어간후 검색방법(/검색내용))/ExecStart2.2 vi편접기 검색방법/검색내용3. 내용 수정변경전ExecStart=-/sbin/agetty --noclear %I $TERM변경후ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM서버재시작# reboot 2-1. 네트워크 설정 및 고정 아이피 IP설정# vi /.. 2023. 8. 2.
리눅스 haproxy로 로드밸런싱(트래픽 분산) 1. 웹서버(아파치) 설치 - 1,2 서버 모두 설치 # yum -y install httpd 2.haproxy 설치 - 1서버 설치 # yum -y install haproxy 3. 서비스 정상확인 상태확인 # systemctl staus httpd # systemctl staus haproxy 시작 # systemctl start httpd # systemctl start haproxy 종료 # systemctl stop httpd # systemctl stop haproxy 재시작 # systemctl restart httpd # systemctl restart haproxy 4. 로드밸런싱 설정 -서버 1 설정 -웹포트 : 80 -haproxy 포트 : 5000 -설정파일 경로 : /etc/hap.. 2023. 8. 1.
반응형