본문 바로가기

반응형

전체 글

C276x260 리눅스 환경에서 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 명령어를 사용하며 동기화할 수 있는 스크립.. 더보기
C276x260 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/.. 더보기
C276x260 spell(오른쪽 펌방지 해제) spell(오른쪽 펌방지 해제)Spell 프로그램이란?- 오른쪽 마우스 제한을 풀어주던 ‘웹 마법 도구’의 역사인터넷 초창기 시절, 많은 웹사이트들은 오른쪽 마우스 사용 제한, 텍스트 선택 금지, 콘텐츠 복사 방지 같은 기능을 적용하곤 했습니다.당시에는 ‘펌방지 기능’이라고 불리며, 게시판·카페·블로그에서 흔히 볼 수 있는 설정이었습니다.이런 불편함 때문에 등장한 개념이 바로 “Spell(스펠)” 프로그램입니다.Spell이라는 이름의 의미‘Spell’은 영어로 ‘주문(呪文)’을 뜻합니다.사용자들은 특정 웹사이트에 걸린 제한을 간단한 방식으로 해제해 주는 이 도구를 마치 마법 주문을 걸어주는 프로그램처럼 느꼈고, 그때부터 자연스럽게 “Spell”이라는 이름이 붙었습니다.즉, Spell 프로그램 = 웹사이트.. 더보기
C276x260 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.. 더보기
C276x260 How to install Ruby on Ubuntu How to install Ruby on UbuntuMethod 1: Installing Ruby using the Default Package Manager1. Update the package listOpen a terminal and update the package list to make sure you have the latest information about available packagessudo apt update2. Install RubyTo install the default version of Ruby provided by Ubuntu's package manager, you can use the following commandsudo apt install ruby-fullThis .. 더보기
[솔라리스] 솔라리스 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
반응형