아크몬드

블로고스피어에서 아크몬드(Archmond) 라는 닉네임으로 활동중입니다. 마이크로소프트의 새로운 기술에 열광합니다.

SVN Backup, Restore(Windows to Linux)

Windows: SVN 백업 Windows에서 SVN(Subversion) 저장소를 백업 Windows에 설치된 SVN 저장소. svnadmin dump D:\SVN_Repo\svn > D:\SVN_Repo\svn.dump 마지막 리비전 번호를 기억하고… Linux: SVN 설치 ubuntu에서 svn을 설치. (http://archmond.net/?p=7916 를 참고하면 좋다) sudo apt-get install subversion sudo mkdir /home/svn_repo cd /home/svn_repo/ sudo svnadmin create svn 데이터 복원 sudo svnadmin load svn < /home/archmond/svn.dump 앞에서 백업한 SVN 저장소의 리비전 번호(마지막)와 일치하면 OK! 구성 …

더 읽기 »

SVN Backup, Restore (Linux to Windows)

SVN 저장소 백업 CentOS에서 SVN(Subversion) 저장소를 백업. CentOS: SVN이 설치된 디렉터리에 가서 덤프를 추출. svnadmin dump backsan > yongwoo_backsan.dump 리비전의 마지막 숫자를 기억한다.(이걸로 백업은 80% 완료) SVN 설치(Windows) Windows: Subversion 1.6.6 다운로드. 설치는 http://archmond.net/?p=7399 를 참고. 설치는 기본값대로 진행하면 된다. SVN 저장소 복원 원하는 위치에 svn 폴더를 생성하고, Command Prompt로 특정 폴더를 만들어, svn 저장소를 만들어 그곳에 덤프 파일을 로드. …

더 읽기 »

Apache Struts: Hello World!(Struts 2.0.14)

https://archive.apache.org/dist/struts/binaries/ 에서 struts-2.0.14-all.zip 파일을 내려받는다.(엄청 오래 걸림 -_-;;) commons-logging-1.0.4.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.14.jar xwork-2.0.7.jar 파일을 미리 다른 곳에 빼놓는다. Dynamic Web Project 만들기 이름을 적고, 다음 web.xml 만들기 /WebContent/WEB-INF/lib 폴더에 위에서 선택한 파일을 붙여 넣는다. web.xml에 필터를 등록함. <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> <display-name>HelloWorld</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> …

더 읽기 »

MySQL: Max Connections 수 늘리기

Too Many Connections 오류에 대처. 500으로 올렸다. MySQL 서비스 속성을 보니 “C:\ProgramData\MySQL\MySQL Server 5.7\my.ini” 파일을 로드하는 것 같다. max_connections 부분을 찾아서 500으로 수정하고, (기본값은 151) 관련글: http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections 종료전까지 요청이 없이 기다리는 시간(wait_timeout)을 60으로 수정함.(기본값은 28800) 관련글: http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_wait_timeout

더 읽기 »

Raspberry + Ubuntu Mate: 설치 후 디스크 용량 늘려주기

라즈베리 파이에 우분투 메이트 설치 후 디스크 용량 늘려주는 작업을 합니다. How to Resize and Expand the Filesystem of Ubuntu MATE for Raspberry Pi 2 df -h 로 용량 확인 sudo fdisk -l 59.5GB의 /dev/mmcblk0 이 보인다. sudo fdisk /dev/mmcblk0 d, 2를 차례로 입력. n, p, 2, 엔터, 엔터 w 를 눌러서 기록. 재부팅을 해야 적용됨. sudo reboot sudo resize2fs …

더 읽기 »

Java: 원격 서버에 소스코드 배포하고 실행하기(Git, Github, Maven)

https://www.youtube.com/watch?v=N8iLAuAo-Qw 소스코드를 원격서버에 배포 : 참고하여 진행함 먼저 Git 설치 확인 git –version 저장소 clone 주소 복사. 디렉터리를 만들고… git clone 잘 들어왔다. maven 패키지 확인 maven 패키지 설치(관련글: https://www.mkyong.com/maven/how-to-install-maven-in-ubuntu/ ) 버전 확인. mvn clean package (빌드를 위해 필요한 자료를 다운로드) 처음이라 2분 넘게 걸림. 다시 한 번 실행. 다운로드 과정이 없어 19초만에 끝남. 프로젝트의 .jar 파일이 같이 실행되어야 하므로.. …

더 읽기 »

Eclipse: 프로젝트를 Git에 공유하기

자바 웹 프로그래밍 Next Step 도서와 https://www.youtube.com/watch?v=JuN7WH_1Q4o 을 보고 진행했습니다. 1. Create a new repository   github에서 My profile -> Repositories 에 들어감 New 저장소 생성. 2. Clone Git Repository clone 단추. clipboard에 복사. 이클립스에서 paste repository path or uri 선택 다음 다음 완료 3. Share project with Git 이제 프로젝트를 Git에 공유해보자. Team -> Share Project git Repository를 선택. …

더 읽기 »

launch4j: create executable Java program(Java Swing project)

http://launch4j.sourceforge.net/ 에서 3.9버전을 다운로드했음. Launch4j 3.9 완료. Launch4j 3.9는 잠시 최소화해 놓습니다. Eclipse에서 백업하기 원하는 프로젝트 -> Run As -> Run Configurations… Java Application에서 어떤 이름으로 Run Configuration이 저장되어 있는지 보면 됩니다. Eclipse에서 File -> Export run을 검색해서 Runnable JAR file 선택 Launch configuration에서 프로젝트를 선택, Export destination에 .jar 파일을 만들기 원하는 위치를 지정해준다. OK 만들어진 .jar 파일을 실행하면… 프로그램이 …

더 읽기 »