본문 바로가기
728x90

Dev/Linux28

[Linux] 사용자 UID, 그룹 GID 변경 지난 연관 게시물 2022.09.22 - [Dev/MySQL] - [MySQL] ERROR 1018 (HY000): Can't read dir of '.' (errno: 13) [MySQL] ERROR 1018 (HY000): Can't read dir of '.' (errno: 13) Problem 기존에 기동되던 mysql 의 디렉토리를 살펴보다가 디렉토리의 소유권이 다음과 같이 설정되어 있는 것을 발견했다. drwxr-xr-x. 15 root nobody 254 9월 22 14:51 mysql 이때는 nobody가 뭔지 몰랐음.. 이.. dev-kwon.tistory.com 기존에 기동되던 mysql 의 디렉토리를 살펴보다가 디렉토리의 소유권이 다음과 같이 설정되어 있는 것을 발견했다 drwxr-x.. 2022. 10. 11.
[Linux] Crontab이 작동하지 않을 때 Problem CentOS 6 환경의 서버에서 daily backup이 며칠째 돌아가지 않고 있었다. 확인해보니 cron에 걸려있는 모든 job들이 작동하지 않고 있었다. /var/log/cron 에서 로그를 보니 아래와 같은 오류가 지속적으로 발생하고 있었다. Sep 20 11:20:01 localhost crond[1979]: (root) FAILED to authorize user with PAM (Module is unknown) Solution cron restart를 해준다. /etc/init.d/crond restart restart 하고 기록된 로그 Sep 20 11:24:11 localhost crond[1632]: (CRON) INFO (Shutting down) Sep 20 11:24.. 2022. 9. 20.
[Linux] SSH connectivity Issues Problem statement : You are not able to ssh login to a server. How will you troubleshoot? What is SSH? : Netwoking protocol used to access remote server in unique way. Steps for Troubleshooting 1. Try ‘ping’ command This is in-general direction for troubleshooting of any network problem. @ ping ( $ ping 192.168.3.11) a. command used to check reachability of host. Example $ ping 192.148.3.11 b. I.. 2022. 9. 11.
[Linux] How to Secure A Server 1. How can a external entity establish connection to your server? a. TLS | SSL usage for web requests. b. usage of certificates for internal traffic * Example ACM - Amazon Certificate Manager. c. Connection to Remote Hosts from local machine. - use SSH - Two ways for SSH connection 1. Password 2. SSH Keys → more secure - why? Checking SSH keys is more difficult. use self rotating keys to further.. 2022. 9. 10.
[Linux] Troubleshoot Slow Server Problem Statement : Server processing is slow, how will you troubleshoot to improve server processing time? 1. Is any specific application of server slow? a. Can we kill it? b. Application is required by system? - Does application require more resources than provided by system? (Example - Running Android Studio on 1GB RAM machine) - Possible to close sub-resources from application? (Example - Cl.. 2022. 9. 9.
[Linux] Kernel Kernel은 Linux OS의 주요 구성 요소이다. 컴퓨터 하드웨어와 프로세스를 잇는 핵심 인터페이스. 두 가지 관리 리소스 사이에서 최대한 효과적으로 통신한다. Linux OS의 구성 하드웨어 : 시스템의 토대가 되는 물리적 머신. 메모리(RAM)와 프로세서 또는 중앙 처리 장치(CPU) 그리고 입출력 장치로 구성된다. Linux 커널 : OS의 핵심. 메모리에 상주하며 CPU에 명령을 내리는 소프트웨어 사용자 프로세스 : 실행 중인 프로그램으로, 커널이 관리한다. 사용자 프로세스가 모여 사용자 공간을 구성한다. 커널은 프로세스와 서버가 서로 통신할 수 있도록 해준다. 이러한 통신을 프로세스 간 통신 또는 IPC라고 한다. Linux에서 커널과 다른 구성 요소들과의 관계를 가볍게 비유하자면 다음과 같.. 2022. 9. 5.
728x90