본문 바로가기

728x90

리눅스

[draft] CentOS 8에서 기본 리포지토리를 미러 서버로 변경하는 방법 CentOS 8에서 기본 리포지토리를 미러 서버로 변경하는 방법CentOS 8에서 미러 서버를 사용하여 패키지를 설치하거나 업데이트하려면 /etc/yum.repos.d/ 디렉토리에 새로운 리포지토리 파일을 추가하거나 기존 리포지토리 파일을 편집해야 합니다.1. 리포지토리 파일 생성CentOS-Base.repo 편집vim /etc/yum.repos.d/CentOS-Base.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close t.. 더보기
리눅스 tar 명령어를 사용하여 풀 백업, 증분 백업 및 자동 백업을 하는 방법 리눅스 tar 명령어를 사용하여 풀 백업, 증분 백업 및 자동 백업을 하는 방법 tar 명령어를 사용하여 풀 백업, 증분 백업 및 자동 백업을 수행할 수 있습니다. 아래에 각 백업 유형에 대한 설명과 예제를 제공합니다. 1. 풀 백업 (Full Backup) 풀 백업은 모든 파일과 디렉토리를 한 번에 백업하는 방식입니다. 아래는 tar 명령어를 사용하여 풀 백업을 생성하는 예제입니다. tar -czvf full_backup.tar.gz /path/to/source 위 명령어는 /path/to/source 경로의 모든 파일과 디렉토리를 압축하여 full_backup.tar.gz라는 이름의 아카이브 파일로 생성합니다. 2. 증분 백업 (Incremental Backup) 증분 백업은 이전 백업과의 차이점만을.. 더보기
[리눅스] Cockpit 관리 도구 설치(WEB UI 기반) cockpit 관리 도구 설치 플렛폼Platform(플랫폼) $ cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRO.. 더보기
configure, make, make install 명령어 configure, make, make install 명령어 리눅스에서 소스 코드로부터 프로그램을 설치하는 과정은 일반적으로 configure, make, make install 명령어를 사용합니다. 명령 설명 configure configure 명령을 이용하여 Makfile 생성 make distclean make clean과 유사하지만 Makefile을 포함하여 configure에 의해 생성된 모든 파일도 삭제합니다. (파일을 받고 압축을 푼 처음 상태로 만드는 것) make Makefile에 따라 소스 코드를 컴파일하고 링크하고 목적 파일, 실행 파일을 생성합니다. (Makfile를 이용해서 소스 코드를 컴파일하여 실행가능한 설치파일을 만듬) make clean 마지막 make 명령으로 생성된 개체.. 더보기
CentOS 7에서 MySQL 5.7를 바이너리 아카이브 파일로 설치하는 방법 CentOS 7에서 MySQL 5.7를 바이너리 아카이브 파일로 설치하는 방법 테스트 환경 운영체제 버전 정보 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 DB : mysql 5.7.15 MySQL 계정 생성 groupadd -g 27 mysql useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -g 27 -u 27 mysql MySQL Community Server 다운로드 받기 https://downloads.mysql.com/archives/community/ 작업 디렉토리로 이동 cd /usr/local/src 아카이브 파일 다운.. 더보기
CentOS 7에 MySQL 5.7을 바이너리 설치하는 방법(binary) CentOS 7에 MySQL 5.7을 바이너리 설치하는 방법(binary) 테스트 환경 - DB : mysql 5.7.15 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ getconf LONG_BIT 64 mysql 계정 생성 groupadd -g 27 mysql useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -g 27 -u 27 mysql MySQL Community Server 다운로드 받기 mysql-boost-5.7.15.tar.gz 압축 풀기 tar xfz mysql-boost-5.7.15.tar.gz cd mysql-5.7.15/ 컴파일 설치 cmake \ -.. 더보기
리눅스에서 my.cnf 파일을 찾는 방법 리눅스에서 my.cnf 파일을 찾는 방법 MySQL 또는 MariaDB의 설정 파일인 my.cnf 파일은 일반적으로 리눅스 시스템에서 여러 위치에 저장될 수 있습니다. MySQL 또는 MariaDB의 버전 및 배포에 따라 my.cnf 파일의 위치가 다를 수 있습니다. 일반적으로 /etc/mysql/ 또는 /etc/my.cnf 디렉토리에 위치합니다. Ubuntu 또는 Debian Ubuntu 또는 Debian 시스템에서 my.cnf 파일은 /etc/mysql/ 디렉토리에 저장됩니다. /etc/mysql/my.cnf CentOS 또는 RHEL CentOS 또는 Red Hat Enterprise Linux (RHEL) 시스템에서 my.cnf 파일은 /etc/my.cnf 또는 /etc/mysql/my.cnf에 .. 더보기
[리눅스] 압축 명령어 tar, gzip 압축 명령어 tar 명령어(tar, tar.gz) tar - GNU 버전 tar 저장 도우미 묶음 foo 디렉토리에 있는 내용물을 foo.tar 파일로 묶는다. $ tar cvvf foo.tar foo/ drwxr-xr-x root/root 0 2022-03-03 17:08 foo/ -rw-r--r-- root/root 0 2022-03-03 17:08 foo/file1.txt -rw-r--r-- root/root 0 2022-03-03 17:08 foo/file2.txt -rw-r--r-- root/root 0 2022-03-03 17:08 foo/file3.txt 묶음 풀기 묶음(foo.tar) 파일 리스트 확인 $ tar tvf foo.tar drwxr-xr-x root/root 0 2022-03-.. 더보기

728x90