I don't want to live a life with only voices.
  • What is PHP-FPM | Installing and configuring PHP-FPM

    PHP-FPM은 웹 서버가 넘긴 PHP 요청을 미리 띄워 둔 워커 프로세스가 받아 처리하는 FastCGI 프로세스 관리자입니다. Apache가 운영되고 있는 AlmaLinux 9 서버에서 설치 여부와 사이트 계정별 풀·소켓 설정을 확인하고, 설정 검사와 상태 확인까지 실제 출력으로 정리했습니다. Apache는 mod_php로 PHP를 직접 실행할 수도 있지만 PHP-FPM에 넘기면 웹 서버와 PHP가 분리됩니다. Nginx는 PHP를 직접 실행하지…

  • nslookup Command: Usage and Options, Record Lookups and Choosing a DNS Server

    The nslookup command is a lookup tool that asks a DNS server about a domain name and returns its IP addresses and DNS records such as MX, NS and TXT. When we looked up the records of example.com by type on an AlmaLinux 9 server and switched the DNS server being queried, the same domain gave different results depending on which server we asked: the Non-authoritative answer line at the top of the response disappeared, and the ANY lookup returned something else. The output below was produced on the AlmaLinux 9.8 server…

  • yum Command: Usage and Options, yum-utils, and Checking Repositories

    The yum command is the package management command that installs, updates, and removes packages on RHEL-based Linux. When we ran the query and update-check commands and the yum-utils tools on an AlmaLinux 9 server, yum ran as the same program as dnf, and the output was the same as dnf. The repository list, package release numbers, and install times in the output below are example values. On AlmaLinux 9, typing yum runs dnf. This is because /usr/bin/yum is a link that points to dnf-3….

  • gdisk Command: Linux Partition Setup and Creating and Deleting GPT Partitions

    To split a disk with GPT, you create and delete partitions with the gdisk command. Running gdisk followed by a device file name opens an interactive screen, and you set up Linux partitions by typing one-letter options, such as p to list partitions and d to delete one. The gdisk output in this post comes from disk.img, a 3 GiB practice image file made with truncate. On a real disk, put a device file name such as /dev/sdb…

  • Linux tar Command: Compress and Decompress tar.gz (xzf), and Extract a Single File

    The Linux tar command bundles multiple files and folders into a single .tar file and extracts them again. A 40,960-byte .tar file made from a sample website folder became 3,907 bytes with -z compression and 3,200 bytes with -J compression, and after it was extracted into a folder set with -C, even execute permissions and symbolic links came back as they were. The output below comes from a test folder on an AlmaLinux 9.8 server, run as root, with times in UTC. The web…

  • killall Command: Kill Processes by Name, the -9 Signal, and Installing psmisc

    The killall command is a Linux command that picks running processes by program name instead of process number (PID) and sends them a signal; if you don't specify a signal, it sends SIGTERM (per the official manual). Because it ends every process with the same name at once, we first checked with pgrep and ps four processes started on an AlmaLinux 9 server from copies of sleep under different names, and for an executable longer than 15 characters, only the first 15 characters remained in the process name. We ran killall only on xxsleep processes started for testing under a regular account on a Debian 12 server…

  • Linux vi Commands: Vim's 3 Modes and Visual Mode

    vi 를 열었다가 글자가 입력되지 않거나, 빠져나오는 법을 몰라 창을 닫아 버리는 일은 서버를 처음 만지는 사람이 한 번은 겪습니다. 리눅스 vi 명령어는 명령 모드와 입력 모드가 나뉘어 있어, 지금 어느 모드에 있는지만 알면 그 뒤는 키 몇 개로 끝납니다. 이 글에서는 세 가지 모드와 모드별 명령어를 표로 정리하고, 브라우저 안의 가상 서버에서…

  • Linux which, whereis, locate: 3 Commands to Find a File's Location (Path)

    httpd.conf 를 고치려는데 파일이 어디 있는지 모르거나, 같은 이름의 명령이 두 곳에 있어 어느 쪽이 실행되는지 헷갈릴 때가 있습니다. 리눅스 which 명령어는 실제로 실행되는 파일을, 리눅스 whereis 명령어는 실행 파일과 설정 폴더 · 매뉴얼을, locate 명령어는 이름이 들어간 모든 경로를 찾습니다. 세 명령의 차이를 표로 비교하고, 브라우저 안의 가상 서버에서 직접 쳐 볼…

  • How to Check Linux Kernel Version: uname, hostnamectl, and Distro Version

    uname -r, which prints the version number of the kernel running on the server in one line, is the most basic command to check the Linux kernel version. Checking uname, hostnamectl, and the version files in turn on an AlmaLinux 9 server and a Debian 12 server, each server showed the same kernel version whichever method was used. However, the actual Debian 12 patch version 6.1.187 appeared separately in uname -v and in the list of installed kernel packages…

  • logrotate: Linux Log Rotation Settings and How to Test with -d, -f

    logrotate is a Linux program that replaces ever-growing log files with new ones at a set interval or size and compresses or deletes the old files. On an AlmaLinux 9 server, separate log and config files were created in a test folder, previewed with -d and then rotated with -f, which showed how directives such as rotate, compress and dateext change the names and number of log files without touching the production config….

End of content

End of content