반응형

전체 글 877

[linux] rsync 원격백업 설정

출처 : http://blog.daum.net/moon0sool/56 1. 서버 쪽(원본) 1.1 rsync 설치 확인 rpm -qa | grep rsync 1.2 rsync를 xinetd를 이용하여 실행시키기 위해 /etc/xinetd.d/rsync 파일을 수정 vi /etc/xinetd.d/rsync # default: off # description: The rsync server is a good addition to an ftp server, as it \ # allows crc checksumming etc. service rsync { disable = no socket_type = stream wait = no user = root server = /usr/bin/rsync server_a..

OS/Linux 2019.07.26

debian postfix

1. install # apt-get -y install postfix libsasl2 sasl2-bin libsasl2-modules popa3d dovecot-imapd dovecot-pop3d dovecot-common 2. 도메인 추가 등의 기본 설정 # postconf -e "myorifin = hostway.co.kr" # postconf -e "myhostname = mail.hostway.co.kr" postconf -e "relay_domains = hostway.co.kr" 3. 구동 # postfix reload # /etc/init.d/dovecot restart 4. virtual email 추가 예를 들어 text로 수신되는 메일은 master@hostway.co.kr로 전송하는..

OS/Linux 2019.07.26

div tag width 100%

를 사용하면 default로 height는 0, width는 전체에 영역이 잡힌다. 그런데, 여기서 말하는 전체와 style="width: 100%"는 절대 같지 않다. 만약, width를 주지 않고 로 사용 했을 경우 margin이나 padding을 주면 margin과 padding영역까지 고려해서 width가 할당되지만 와 같이 사용하게 되면 margin과 padding을 고려하지 않고 부모의 width 크기 전체로 잡는다. 따라서 의 밑에 태그가 있을 경우 margin이나 padding을 준다면 (ex. padding: 10px;) 100% + 20px이 되기 때문에 20px만큼 body에 스크롤이 생긴다.

카테고리 없음 2019.07.26

[java] read properties file

1. 클래스 선언 public class Config() { private Properties configFile; public Config() { configFile = new java.util.Properties(); try { // 방법 1 시작 (이 방법은 프로젝트 내부의 파일만 사용할 수 있다.) configFile.load(this.getClass().getClassLoader().getResourceAsStream("config.conf")); // 방법 1 끝 // 방법 2 시작 InputStream in = new FileInputStream("config.conf"); configFile.load(in); in.close(); // 방법 2 끝 } catch(Exception e) { ..

웹 개발 2019.07.26

[java] BigInteger

BigInteger 개요 java의 64비트 정수인 long은 9223372036854775807 까지의 숫자를 나타낼 수 있습니다. 그 이상의 정수가 필요하다면 BigInteger를 사용해야 합니다. BigInteger는 숫자의 크기에 제한이 없습니다. 사용법 import java.math.BigInteger; public class Test { public static void main(String[] arg){ BigInteger bi = new BigInteger("100"); BigInteger bi2 = new BigInteger("2"); System.out.println("곱하기 => "+bi.multiply(bi2)); System.out.println("나누기 => "+bi.divide..

웹 개발 2019.07.25
728x90
반응형
loading