본문 바로가기

728x90

전체 글

[리눅스] CentOS 7.x YUM으로 APM 설치 YUM으로 APM 설치 EPEL 및 YUM Utilities 패키지 설치 yum install -y epel-release yum-utils $ yum install -y epel-release yum-utils 컴파일에 필요한 라이브러리 설치 yum install -y gcc gcc-c++ gdbm-devel ncurses-devel $ yum install -y gcc gcc-c++ gdbm-devel ncurses-devel APM 설치에 필요한 라이브러리 설치 yum install -y openssl-devel gd-devel libpng-devel libjpeg-devel freetype-devel fontconfig-devel libxml2-devel gmp-devel mhash-devel l.. 더보기
SSH 접속 시간을 체크하는 방법 SSH 접속 시간을 체크하는 방법 date; echo quit | telnet 10.11.3.81 22 2>/dev/null | egrep -qi Connected; echo $?; date $ date; echo quit | telnet 10.11.3.81 22 2>/dev/null | egrep -qi Connected; echo $?; date 2020년 8월 4일 화요일 16시 09분 29초 KST 0 2020년 8월 4일 화요일 16시 09분 29초 KST 위의 명령어는 telnet을 사용하여 SSH 포트(기본값 22)로 특정 IP 주소(여기서는 10.11.3.81)에 접속하여 연결 여부를 확인하는 방법입니다. 결과적으로 접속이 성공했는지에 따라 0 또는 1을 출력합니다. 여기에 날짜와 시간 정.. 더보기
MySQL 데이터베이스를 백업하고 복원하는 방법 MySQL (또는 MariaDB) 데이터베이스를 백업하고 복원하는 방법 1. 백업하기 전체 데이터베이스 백업: mysqldump -u [사용자] -p [데이터베이스명] > [백업파일명].sql 특정 테이블 백업: mysqldump -u [사용자] -p [데이터베이스명] [테이블명] > [백업파일명].sql 예시: mysqldump -u root -p mydatabase > backup.sql 2. 복원하기 전체 데이터베이스 복원: mysql -u [사용자] -p [데이터베이스명] < [백업파일명].sql 특정 테이블 복원: mysql -u [사용자] -p [데이터베이스명] < [백업파일명].sql 예시: mysql -u root -p mydatabase < backup.sql 참고 [사용자]: MySQL.. 더보기
CentOS 8 미러 서버용 repository 파일 CentOS 8 미러 서버용 repository 파일 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 to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorli.. 더보기
리눅스 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.. 더보기
[기타] 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.. 더보기
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 명령으로 생성된 개체.. 더보기

728x90