본문 바로가기

728x90
반응형

Linux

우분투에서 고정 IP 주소로 설정하는 방법(Static IP Address) 우분투에서 IP 주소를 고정하는 방법(How to set up a static IP address in Ubuntu) Ubuntu 22.04에서 IP 주소를 고정하는 방법은 다음과 같습니다. 1. 네트워크 설정 파일 열기 sudo vim /etc/netplan/00-installer-config.yaml 2. 파일 내에서 네트워크 설정 구성 변경 예를 들어, Ethernet 인터페이스(enp0s3)의 IP 주소를 192.168.0.10로 고정하고자 한다면, 아래와 같이 수정합니다. network: ethernets: enp0s3: addresses: - 192.168.0.10/24 gateway4: 192.168.0.1 nameservers: addresses: [8.8.8.8, 8.8.4.4] vers.. 더보기
우분투에서 도커 엔진을 설치하는 방법(docker install) 우분투에서 도커 엔진을 설치하는 방법(How to install Docker Engine on Ubuntu) Docker 엔진을 리눅스에서 설치하는 방법은 다음과 같습니다. 1. 리눅스 패키지 업데이트를 수행합니다. sudo apt-get update 2. Docker 엔진 설치에 필요한 패키지를 설치합니다. sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common 3. Docker 공식 GPG 키를 다운로드하고 apt-key 명령어를 사용하여 추가합니다. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key .. 더보기
우분투 비밀번호 분실 및 변경(초기화) 방법 우분투 비밀번호 분실 및 변경(초기화) 방법 우분투 실행(전원 ON 또는 재부팅) 시 Shift 눌러 아래와 같이 GRUB 부트 로더에 진입합니다. Advanced options for Ubuntu(우분투용 고급 옵션) Ubunut, with Linux 5.15.0-30-generic (recovery mode) 복구 모드에서 root 항목을 선택 root Drop to root shell prompt(루트 셸 프롬프트로 이동) mount -rw -o remount / passwd root reboot 더보기
ip 명령어 ip 명령어 ip 명령어는 리눅스 시스템에서 네트워크 인터페이스를 관리하고 구성하는 데 사용되는 중요한 도구입니다. iproute(ip 명령) 패키지 설치 ubuntu sudo apt-get update sudo apt-get install -y iproute2 $ ip -Version ip utility, iproute2-5.15.0, libbpf 0.5.0 centos sudo yum install -y iproute macos brew install iproute2mac > ip -Version iproute2mac, v1.4.1 더보기
What Is My IP?(myip) What Is My IP? bind utilities centos yum install -y bind-utils ubuntu apt-get install -y bind9-dnsutils Public IP Address dig @resolver1.opendns.com myip.opendns.com +short Private IP Address ip route get 1.2.3.4 | awk '{ print $7 }' | egrep -v '^$' 더보기
How to install and use stress How to install and use stress Stress is a command-line tool that can be used to stress test a system by generating a workload on the CPU, memory, and I/O. It is a useful tool for testing the performance of a system under load, and can also be used to troubleshoot performance problems. To install stress, you can use the following command: sudo apt install stress Once stress is installed, you can .. 더보기
How to Install Apachetop on CentOS 7 How to Install Apachetop on CentOS 7 To install apachetop on CentOS 7, you can follow these steps: 1. Enable the Extra Packages for Enterprise Linux (EPEL) repository, which provides additional packages: sudo yum install epel-release 2. Install apachetop using the yum package manager: sudo yum install apachetop 3. Once the installation is complete, you can run apachetop to monitor Apache web ser.. 더보기
How to Install SSH Server on Ubuntu How to Install SSH Server on Ubuntu To install an SSH server on Ubuntu, you can follow these steps: 1. Update package lists Open a terminal on your Ubuntu system and run the following command to update the package lists: sudo apt update 2. Install the SSH server package Run the following command to install the SSH server package called openssh-server: sudo apt install openssh-server 3. Configure.. 더보기

728x90
반응형