전체 글15 [Amazon Linux2023] FileZilla로 SFTP 통신 불가능할 때 ####Amazon Linux 2023에 FileZilla로 SFTP 통신 불가능할 때 1. SSH RSA Key 생성 sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key 2. OS에서 ssh-rsa 지원 가능하도록 설정 sudo dnf install crypto-policies-scripts sudo update-crypto-policies --set LEGACY 3. sshd 재기동 sudo systemctl restart sshd (참고: https://docs.aws.amazon.com/ko_kr/linux/al2023/ug/ssh-host-keys-disabled.html) 2024. 3. 19. [Amazon Linux] disk partition 분할, lvm 설정(VG, PV, LV) [Partition 분할] 1. 디스크 정보 확인 # fdisk -l # lsblk 2. 파티션 설정 모드 진입 # fdisk [disk 장치명] ex) fdisk /dev/sdb (partition X) 3. Primary Partition 생성 1) n (new partition 생성) 2) p (primary) 3) 1 (파티션 넘버) 4) 엔터 5) 나눌 용량 작성 ex) +50G 6) p (생성된 파티션 확인) 7) w (저장) 3-1. Linux LVM으로 변경 1) disk [disk 장치명] ex) fdisk /dev/sdb 2) t (type변경) 3) L (type list 확인) 4) 8e (Linux LVM) 5) p (Linux LVM 변경 확인) 6) w (저장) 4. 물리적 볼.. 2024. 2. 22. logrotate 강제 실행 1. logrotate 강제 실행 명령어 (f 옵션) /usr/sbin/logrotate -f {실행시킬 logrotate 파일 경로} /usr/sbin/logrotate -f /etc/logrotate.d/nginx 2. logrotate 디버깅 명령어 /usr/bin/logrotate /etc/logrotate.d/nginx -d (d옵션) /usr/sbin/logrotate /etc/logrotate.d/nginx -d 2023. 6. 13. .bashrc, .bash_profile 차이 참고 - https://projooni.tistory.com/entry/bashrc-%EC%99%80-profile-%EC%B0%A8%EC%9D%B4%EC%99%80-%EC%9E%91%EB%8F%99%EC%9B%90%EB%A6%AC .bashrc 와 .profile 차이와 작동원리 Login Shell 과 Non-login Shell 먼저 Login Shell과 Non-login Shell을 구분해서 알 필요가 있다. Login Shell이란 계정과 암호를 입력해서 Shell을 실행하는 것이다. ssh로 로그인하거나, GUI에서 로그인하는 경우 여 projooni.tistory.com - https://webdir.tistory.com/126 2023. 5. 24. 이전 1 2 3 4 다음