본문 바로가기

분류 전체보기

[draft] 리눅스 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)증분 백업은 이전 백업과의 차이점만을 백업하는 방.. 더보기
[draft] Cockpit 관리 도구 설치(WEB UI 기반) cockpit 관리 도구 설치플렛폼Platform(플랫폼)$ cat /etc/os-releaseNAME="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_PRODUCT="centos"RE.. 더보기
[기타] mac(macOS)에 stormssh 설치 및 설정하기 mac(macOS)에 stormssh 설치 및 설정하기 stormssh 설치 brew install stormssh storm 사용법 usage: storm [-h] [-v] COMMAND ... $ storm -h usage: storm [-h] [-v] COMMAND ... options: -h, --help show this help message and exit -v, --version show program's version number and exit commands: COMMAND version prints the working storm(ssh) version. add Adds a new entry to sshconfig. clone Clone an entry to the sshconfig.. 더보기
[draft] configure, make, make install 명령어 configure, make, make install 명령어리눅스에서 소스 코드로부터 프로그램을 설치하는 과정은 일반적으로 configure, make, make install 명령어를 사용합니다. 명령설명configureconfigure 명령을 이용하여 Makfile 생성make distcleanmake clean과 유사하지만 Makefile을 포함하여 configure에 의해 생성된 모든 파일도 삭제합니다.(파일을 받고 압축을 푼 처음 상태로 만드는 것)makeMakefile에 따라 소스 코드를 컴파일하고 링크하고 목적 파일, 실행 파일을 생성합니다.(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 \ -.. 더보기
[draft] 리눅스에서 my.cnf 파일을 찾는 방법 리눅스에서 my.cnf 파일을 찾는 방법MySQL 또는 MariaDB의 설정 파일인 my.cnf 파일은 일반적으로 리눅스 시스템에서 여러 위치에 저장될 수 있습니다. MySQL 또는 MariaDB의 버전 및 배포에 따라 my.cnf 파일의 위치가 다를 수 있습니다. 일반적으로 /etc/mysql/ 또는 /etc/my.cnf 디렉토리에 위치합니다.Ubuntu 또는 DebianUbuntu 또는 Debian 시스템에서 my.cnf 파일은 /etc/mysql/ 디렉토리에 저장됩니다./etc/mysql/my.cnfCentOS 또는 RHELCentOS 또는 Red Hat Enterprise Linux (RHEL) 시스템에서 my.cnf 파일은 /etc/my.cnf 또는 /etc/mysql/my.cnf에 위치할 수 .. 더보기
[draft] 압축 명령어 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.tardrwxr-xr-x .. 더보기