본문 바로가기

전체 글

CentOS 4에 rsync 서버를 설치하고 설정하는 방법 CentOS 4에 rsync 서버를 설치하고 설정하는 방법rsync 패키지 설치rsync 패키지를 설치해야 합니다.sudo yum install rsyncrsync 설정rsync 패키지 확인$ rpm -qa | grep rsyncrsync-2.6.3-1xinetd 패키지 확인$ rpm -qa | grep xinetdxinetd-2.3.13-4.5.el4xinetd(rsync) 설정 파일 수정rsync를 사용하기 위한 설정(disable = yes -> disable = no 변경)vim /etc/xinetd.d/rsync# default: off# description: The rsync server is a good addition to an ftp server, as it \# allows crc c.. 더보기
리눅스 환경에서 rsync 명령어로 데이터 동기화하는 방법 리눅스 환경에서 rsync 명령어로 데이터 동기화하는 방법테스트 환경구분서버 이름서버 아이피디렉터리(데이터)비고sourceserv-A1.1.1.1/app/file targetserv-B2.2.2.2/app/file  SSH Key 교환RSA 암호화 방식으로 SSH 공개키와 비공개키를 생성root@serv-B:file$ ssh-keygen -t rsaSSH 공개키 복사(serv-B -> serv-A 복사)공개기 복사할 때 패스워드 필요.root@serv-B:file$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@1.1.1.1SSH 접속 테스트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은 원격 서버의 파일 경로이고, /path/.. 더보기
[원도우] 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 run things here that may# depend on NIS/NIS+ maps.#case "$1" in'start');; # Fall through -- .. 더보기
[솔라리스] 솔라리스 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.. 더보기

반응형