Skip to content

Instantly share code, notes, and snippets.

View interhouse5cha's full-sized avatar

interhouse5cha

View GitHub Profile
@interhouse5cha
interhouse5cha / intro.md
Created May 16, 2018 14:40 — forked from derhuerst/intro.md
Installing Git on Linux, Mac OS X and Windows
hojin@sist:~$ nano .bashrc
export JAVA_HOME=/usr/local/jdk1.8.0_45
export PATH=$JAVA_HOME/bin:$PATH
export PATH=/home/hojin/Documents/apache-maven-3.3.9/bin:$PATH
@interhouse5cha
interhouse5cha / Jenkins login error
Created May 12, 2018 06:54
Jenkins login error
hojin@sist:/var/lib/jenkins$ sudo nano config.xml
[sudo] password for hojin:
<useSecurity>false</useSecurity>
hojin@sist:/var/lib/jenkins$ sudo /etc/init.d/jenkins restart
Correct java version found
[ ok ] Restarting jenkins (via systemctl): jenkins.service.
@interhouse5cha
interhouse5cha / Download Jenkins
Last active May 10, 2018 22:13
Download Jenkins
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
Then add the following entry in your /etc/apt/sources.list:
deb https://pkg.jenkins.io/debian-stable binary/
sudo apt-get update
sudo apt-get install jenkins
이미 젠킨스가 시작되어 있음. 아래는 참고로만 본다.
hojin@sist:/usr/share/jenkins$ java -jar jenkins.war --httpPort=8080
@interhouse5cha
interhouse5cha / Configure Java_Home on Linux:
Created May 10, 2018 14:10
Configure Java_Home on Linux:
Configure Java_Home on Linux:
Login to your account and open the startup script file which is usually ~/.bash_profile file (or can be .bashrc depending on your envrionment settings)
$ vi ~/.bash_profile
In the startup script, set JAVA_HOME and PATH
jdk-install-dir is the JDK installation director, which should be something similar to /usr/java/jdk1.5.0_07/bin/java
Korn and bash shells:
@interhouse5cha
interhouse5cha / 웹 프로그래밍 확인문제11
Created March 29, 2018 03:07
웹 프로그래밍 확인문제11
0으로 나누는 예외에 대처하는 try-catch 블록 만들기 (파일 이름 : DevideByZeroHandlingLab.java)
try-catch-finally 블록을 이용하여 정수를 0으로 나누는 경우에 "0으로 나눌 수 없습니다!"를 출력하는 프로그램을 작성하라.
아래 출력결과를 참조하여 작성하시오.
@interhouse5cha
interhouse5cha / 웹 프로그래밍 확인문제10
Created March 19, 2018 02:45
웹 프로그래밍 확인문제10
아래 출력과 같은 결과가 나오게 작성하시오.(배열사용)
(파일 이름 : ArrayLab4b.java)
@interhouse5cha
interhouse5cha / 웹 프로그래밍 확인문제9
Created March 16, 2018 03:33
웹 프로그래밍 확인문제9
아래 출력과 같은 결과가 나오게 작성하시오.
(파일 이름 : AgeLab.java)
@interhouse5cha
interhouse5cha / 웹 프로그래밍 확인문제8
Created March 15, 2018 00:58
웹 프로그래밍 확인문제8
아래 출력과 같은 결과가 나오게 작성하시오.(switch문 사용)
(파일 이름 : Switch2Lab.java)
@interhouse5cha
interhouse5cha / 웹 프로그래밍 확인문제7
Created March 12, 2018 06:17
웹 프로그래밍 확인문제7
int형 변수 a에 10을 대입하고 int형 변수 b에 7을 대입한 후
두 변수의 값을 비트연산자 중 XOR(배타적 OR)를 사용하면 얻어지는 결과는 얼마인지 알아보는 프로그램을
작성하여라. (파일 이름 : XORLab.java)