본문 바로가기

반응형

전체 글

[리눅스] 리눅스 환경에서 rsync 명령어로 데이터 동기화하는 방법 리눅스 환경에서 rsync 명령어로 데이터 동기화하는 방법 테스트 환경 구분 서버 이름 서버 아이피 디렉터리(데이터) 비고 source serv-A 1.1.1.1 /app/file target serv-B 2.2.2.2 /app/file SSH Key 교환 RSA 암호화 방식으로 SSH 공개키와 비공개키를 생성 root@serv-B:file$ ssh-keygen -t rsa SSH 공개키 복사(serv-B -> serv-A 복사) 공개기 복사할 때 패스워드 필요. root@serv-B:file$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@1.1.1.1 SSH 접속 테스트 root@serv-B:file$ ssh 'root@1.1.1.1' 데이터 동기화 스크립트 작성 rsync 명령.. 더보기
scp 명령어 scp 명령어 scp는 Secure Copy의 약자로, 원격 서버와 로컬 시스템 간에 파일을 안전하게 복사하는 명령어입니다. 사용 방법 옵션: -r: 디렉토리를 재귀적으로 복사합니다. -p: 파일의 속성(퍼미션, 타임스탬프 등)을 유지하면서 복사합니다. -P 포트번호: SSH 포트 번호를 지정합니다. -i 개인키: 개인키 파일을 사용하여 인증합니다. 예시 1. 원격 파일을 로컬로 복사하기 scp user@remote_host:/path/to/remote/file /path/to/local/directory 위의 예시에서 user는 원격 서버에 접속하기 위한 사용자 이름이고, remote_host는 원격 서버의 호스트 이름 또는 IP 주소입니다. /path/to/remote/file은 원격 서버의 파일 경.. 더보기
[원도우] spell (오른쪽 펌방지 해제) spell (오른쪽 펌방지 해제) { Spell 이란? } 'Spell' 이란 '주문' 이라는 의미를 가진 단어입니다. 즉, Spell 프로그램은 펌 방지가 걸려있는 사이트에 마법의 주문을 걸어 펌이 가능하도록 해 준다는 의미에서 지어진 이름입니다 http://www.rodream.net/ 더보기
Webalizer를 컴파일하고 설치하는 방법 Webalizer(로그 파일 분석기)를 컴파일하고 설치하는 방법 Webalizer는 웹 서버 로그 파일을 분석하여 통계를 생성하는 오픈 소스 웹 로그 분석 도구입니다. 참고: 이러한 과정은 빌드 시스템, 컴파일러, 및 라이브러리의 종속성이 해결되어 있어야 하며, 필요한 권한을 갖고 있어야 합니다. 또한, 운영 체제나 환경에 따라 달라질 수 있습니다. 1. Webalizer 다운로드 Webalizer의 최신 버전을 공식 웹사이트(https://sourceforge.net/projects/webalizer/)에서 다운로드하거나, 원하는 버전의 소스 코드를 직접 구해옵니다. wget ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-05-src.tgz 2. Webaliz.. 더보기
[솔라리스] 네임서버 구동 스크립트 S72inetsvc 네임서버 구동 스크립트 S72inetsvc # cat /etc/rc2.d/S72inetsvc --------------------------------------------------------------------------------- #!/sbin/sh # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #ident "@(#)inetsvc 1.31 04/03/16 SMI" # # This is third phase of TCP/IP startup/configuration. This script # runs after the NIS/NIS+ startup script. We .. 더보기
[솔라리스] 솔라리스 10 에서 svc 제어하기(svccfg) 솔라리스 10 에서 svc 제어하기(svccfg) [sangchul.kr(scbyun)::/export/home/scbyun]$ svccfg svc:> list ... application/print/rfc1179 application/font/stfsloader network/rpc/smserver network/dns/server network/rpc/ocfserv application/print/server ... svc:> select network/dns/server svc:/network/dns/server> listprop filesystem_minimal dependency filesystem_minimal/entities fmri svc:/system/filesystem/minimal f.. 더보기
[솔라리스] 오픈솔라리스 네트워크 설정 오픈솔라리스 네트워크 설정 IP(Internet Protocol) root@opensolaris:~# cat /etc/hostname.iprb0 10.0.10.100 Netmask root@opensolaris:~# cat /etc/netmasks # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy.. 더보기
[솔라리스] Open Solaris VNC 설치 Open Solaris VNC 설치 VNC 패키지 검색 root@opensolaris:~# pkginfo | grep vnc system SUNWvncviewer VNC viewer client system SUNWxvnc X11/VNC server VNC 패키지 정보(버전) root@opensolaris:~# pkginfo -l SUNWxvnc PKGINST: SUNWxvnc NAME: X11/VNC server CATEGORY: system ARCH: i386 VERSION: 6.9.0.5.11.11100,REV=0.2009.05.07 VENDOR: Sun Microsystems, Inc. DESC: X Window System server based on X.Org Foundation open so.. 더보기

728x90
반응형