목록Linux (14)
보조기억장치
// 인터페이스명 확인(여기서는 ens33) # route -e Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default TUF-AX5400-BE78 0.0.0.0 UG 0 0 0 ens33 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33 TUF-AX5400-BE78 0.0.0.0 255.255.255.255 UH 0 0 0 ens33 // IP 변경하기# vi /etc/n..
// 타임존 확인 # timedatectl // 타임존 목록보기# timedatectl list-timezones |grep Seoul Asia/Seoul // 타임존 변경하기 # timedatectl set-timezone Asia/Seoul // 타임존 변경확인 # timedatectl Local time: Fri 2022-02-25 22:11:58 KST Universal time: Fri 2022-02-25 13:11:58 UTC RTC time: Fri 2022-02-25 13:11:58 Time zone: Asia/Seoul (KST, +0900) System clock synchronized: yes systemd-timesyncd.service active: yes ..
2 TASK install_apache.yml - hosts: all become: true tasks: - name: install apache2 and php package(CENTOS) dnf: name: - httpd - php state: latest update_cache: yes when: ansible_distribution == "CentOS" - name: install apache2 and php package(UBUNTU) apt: name: - apache2 - libapache2-mod-php state: latest update_cache: yes when: ansible_distribution == "Ubuntu" 1 TASK (패키지 모듈 사용) https://docs.an..
우분투에서 update 실행중 공개키가 없어서 인증에러 발생 # apt update Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,825 B] Err:1 http://dl.google.com/linux/chrome/deb stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B 248 packages can be upgraded. Run 'apt list --upgradable' to see them. W: An error occurred during the si..
ping 테스트 # ansible all --key-file ~/.ssh/ansible -i inventory -m ping 192.168.0.112 | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "ping": "pong" } 192.168.0.113 | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "ping": "pong" } ansible 환경설정 파일 만들기 # nano a..
ssh 접속 테스트 # ssh 192.168.0.112 # ssh 192.168.0.113 $ ls -la .ssh known_hosts ssh 공개키 생성 # ssh-keygen -t ed25519 -C 'server default' Generating public/private ed25519 key pair. Enter file in which to save the key (/home/jay/.ssh/id_ed25519): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/jay/.ssh/id_ed25519. Your public key has..
패키지 설치시 아래가 발생 Module yaml error: Unexpected key in data: static_context [line 9 col 3] 해결방법 # dnf update libmodulemd