목록분류 전체보기 (1395)
변군이글루(Mirror)

CentOS 7에서 yum 저장소(repository)를 변경하는 방법테스트 환경운영체제 버전 정보$ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)1. 기존 저장소 확인현재 활성화된 저장소 목록과 상태를 확인할 수 있습니다.yum repolist2. 원하는 저장소 찾기변경하려는 새로운 저장소를 찾아야 합니다. CentOS 기본 저장소 이외의 저장소를 사용하려면 해당 저장소의 URL을 알아야 합니다.3. 기존 저장소 비활성화저장소를 변경하려면 먼저 현재 사용 중인 저장소를 비활성화해야 합니다. 저장소의 설정 파일을 편집하여 enabled=0으로 설정하면 됩니다.예를 들어, /etc/yum.repos.d/CentOS-Base.repo 파일을 편집..

systemd 명령어systemd는 리눅스 시스템 및 서비스 매니저로 부팅 시 서비스의 시작 및 관리를 담당하며 시스템 자원과 프로세스를 제어합니다. systemctl 명령어를 사용하여 systemd 기반 시스템에서 서비스를 관리할 수 있습니다.1. systemd와 systemctl의 기본 개념systemd : 리눅스에서 부팅 및 시스템 관리 작업을 제어하는 시스템 및 서비스 관리자.systemctl : systemd 서비스 및 유닛(unit)을 관리하기 위한 명령어.2. 주요 systemctl 명령어서비스 관리서비스 시작sudo systemctl start 서비스 중지sudo systemctl stop 서비스 재시작sudo systemctl restart 서비스 상태 확인sudo systemctl st..

우분투에서 TFTP 서버를 구축하는 방법 TFTP 서버는 작은 크기의 파일을 네트워크를 통해 전송하는 간단한 파일 전송 프로토콜을 제공합니다. 테스트 환경 $ lsb_release -a No LSB modules are available. Distributor ID:Ubuntu Description:Ubuntu 22.04.1 LTS Release:22.04 Codename:jammy APT 리포지토리 패키지 업데이트 apt update tftpd-hpa 패키지 설치 apt install -y tftpd-hpa TFTP 계정 정보(그룹/계정) $ cat /etc/group | grep tftp tftp:x:118: $ cat /etc/passwd | grep tftp tftp:x:113:118:tftp d..

CentOS 7을 기준으로 RackTables를 설치하는 방법 RackTables는 데이터센터 및 IT 자산 관리를 위한 오픈 소스 솔루션 중 하나입니다. RackTables를 설치하려면 아파치 웹 서버, PHP, MySQL (또는 MariaDB)를 설치하고 구성해야 합니다. 1. 필수 패키지 설치 yum install -y wget unzip automake libtool openssl-devel gcc 2. 아파치 웹 서버 설치 yum install -y httpd 3. MySQL(MariaDB) 설치 yum install -y mysql mysql-server service mysqld start $ service mysqld start Set root password? [Y/n] y New pas..

리눅스에서 .ppk 파일을 .pem 파일로 변환putty 설치redhat 계열(CentOS)sudo yum install -y puttydebian 계열(ubuntu)sudo apt-get install -y putty-tools.pem 파일을 .ppk 파일로 변환sudo puttygen pemKey.pem -o ppkKey.ppk -O private.ppk 파일을 .pem 파일로 변환sudo puttygen ppkkey.ppk -O private-openssh -o pemkey.pem 참고: PuTTY 프로그램은 Windows 운영체제에서 사용되며 Linux나 macOS에서는 .pem 형식의 키 파일을 주로 사용합니다. PuTTY에서 생성된 .ppk 파일을 .pem으로 변환하면 이후 SSH 연결과 같은..

mysqladmin 명령어 mysqladmin은 MySQL 데이터베이스 서버를 관리하는 명령어입니다. 이 명령어를 사용하여 다양한 데이터베이스 관리 작업을 수행할 수 있습니다. 기본 구문 mysqladmin [옵션] 작업 [추가 옵션] 주요 옵션 -u, --user=사용자 : MySQL 서버에 연결할 사용자 이름 지정. -p, --password[=비밀번호] : 비밀번호를 입력하고 사용자 인증. -h, --host=호스트 : MySQL 서버 호스트명 또는 IP 주소를 지정. create database : 새 데이터베이스 생성. drop database : 데이터베이스 삭제. reload : 설정 파일 다시 로드 (재시작하지 않고 설정을 다시 적용). flush-tables : 모든 테이블을 닫고 테이블..

CentOS 7에서 MariaDB를 설치하는 방법현재 지원되는 버전은 10.3, 10.4, 10.5, 10.6(5년간 지원)테스트 환경$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)yum-utils 패키지 설치yum install -y yum-utils1. MariaDB 공식 저장소 추가CentOS 7의 공식 저장소에는 MariaDB가 기본적으로 포함되어 있습니다.vim /etc/yum.repos.d/MariaDB.repo# MariaDB 10.6 CentOS repository list - created 2022-12-09 11:34 UTC# https://mariadb.org/download/[mariadb]name = MariaDBbas..

리눅스에서 라우팅을 추가하는 방법1. ip route 명령어 사용하기ip route 명령어를 사용하여 라우팅 테이블에 경로를 추가할 수 있습니다. 기본 문법[대상_네트워크/서브넷]은 추가하려는 네트워크 또는 서브넷을 나타내고 [게이트웨이_IP]는 대상 네트워크로의 게이트웨이 IP 주소를 [인터페이스]는 사용할 네트워크 인터페이스를 나타냅니다.sudo ip route add [대상_네트워크/서브넷] via [게이트웨이_IP] dev [인터페이스]현재 라우팅 테이블 확인현재 시스템의 라우팅 테이블을 확인하여 기존 라우팅 정보를 파악합니다.sudo ip route show단일 경로 추가192.168.1.0/24 네트워크로 가는 경로를 192.168.0.1 게이트웨이를 통해 eth0 인터페이스로 추가하는 경우i..