본문 바로가기

IT

리눅스 아파치 설치 1. 개발툴 설치 [ec2-user@ip-172-31-16-251 ~]$ sudo yum install gcc gcc-c++ [ec2-user@ip-172-31-16-251 ~]$ sudo yum groupinstall Development Tools Development Libraries 2. 다운로드 및 압축해제(pcre, apr, apr-util, apache)[ec2-user@ip-172-31-16-251 ~]$ cd /tmp/ [ec2-user@ip-172-31-16-251 tmp]$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz [ec2-user@ip-172-31-16-251 tmp]$ wget http:.. 더보기
nc.exe 포트 확인 -열린 포트C:\Users\kn\Desktop\netcat-win32-1.12>nc -z -v 192.168.0.57 9090khf01 [192.168.0.57] 9090 (?) open - 닫힌 포트C:\Users\kn\Desktop\netcat-win32-1.12>nc -z -v 192.168.0.116 9090192.168.0.116: inverse host lookup failed: h_errno 11004: NO_DATA(UNKNOWN) [192.168.0.116] 9090 (?): TIMEDOUT -열린 포트C:\Users\kn\Desktop\netcat-win32-1.12>nc -z -v 192.168.0.58 9090khf01 [192.168.0.58] 9090 (?) open 더보기
html 공백 < > & " 표현 >& &" "® ®© © 더보기
정규식 모든 공백 체크var regExp = /\s/g; 숫자만 체크var regExp = /^[0-9]+$/; 이메일 체크var regExp = /^[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_\.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i; 핸드폰번호var regExp = /^\d{3}-\d{3,4}-\d{4}$/; 일반 전화번호var regExp = /^\d{2,3}-\d{3,4}-\d{4}$/; 아이디 또는 비밀번호var regExp = /^[a-z0-9_]{4,20}$/; 휴대폰번호var regExp = /^01([0|1|6|7|8|9]?)-?([0-9]{3,4})-?([0-9]{4})$/; 주민번호var regExp = /^(?:[0-9]{2}.. 더보기
Oracle 11g Express Edition 설치하기 오라클 공부를 위한 11g Express Edition 설치하기 1. 오라클 홈페이지 접속 (http://www.oracle.com) 2. Download - Database - Oracle Database 3. 화면 목록 중 11g Express Edition 에서 Download 4. 11g Download 5. 설치파일 압축해제 setup 6. 11g 설치 - 오라클 관리자용 password 입력 (ex.ora1234) - 오라클 사용 Port 확인 : 1521, 2030, 8080 더보기
tomcat 설치 http://tomcat.apache.org/ 64-bit Windows zip (pgp, md5, sha1) 환경변수 - 시스템 변수 : 스프링까지 영향CATALINA_HOME : d:\tomcat9 D:\tomcat9\bin\startup.batshutdown.bat바탕화면 바로가기 만들기 - 속성 - 관리자권한 실행 실행확인http://127.0.0.1:8080 오라클과 동시 실행시 tcp 8080포트 충돌 발생 포트 설정 변경D:\tomcat9\conf\server.xml new - dynamic web project - target runtime - new runtime - apache tomcat v9.0directory - D:\tomcat9 runtime 오류project - propert.. 더보기
JDK 설치확인 환경변수 - 시스템변수 - 새로만들기- Path : %JAVA_HOME%\bin;- JAVA_HOME : C:\Program Files\Java\jdk1.8.0_131- CLASSPATH : .;%JAVA_HOME%\lib\tools.jar; EclipseWorkspace : D:\ws\jsp 더보기
Oracle DB 생성 Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Windows\system32>sqlplus /nolog SQL*Plus: Release 11.2.0.2.0 Production on 목 6월 22 16:00:56 2017 Copyright (c) 1982, 2014, Oracle. All rights reserved. SQL> conn /as sysdbaConnected.SQL> create user zipcode identified by 1234; User created. SQL> grant connect, resource to zipcode; Grant succeede.. 더보기
Eclips Window Builder 설치 1. 이클립스 실행 후 Help - Install New Software 선택 2. Add 선택 3. 아래와 같이 입력 Name : WindowBuilder Location : http://download.eclipse.org/windowbuilder/WB/integration/4.5/ 4. Select All - Next 5. Next 5. Next 6. Restart Eclips 더보기
주민번호 검증 public static void main(String[] args) {String jumin = "123456-7890123";String yy = jumin.substring(0, 2);//12String mm = jumin.substring(2, 4);//34String dd = jumin.substring(4, 6);//56String sex = jumin.substring(7, 8);//7String yyyy = yy; /* if문if(sex.equals("7")){}*/ // switch문switch(sex) {case "1" : case "2" : case "5" : case "6" : yyyy = "19" + yy; break;case "3" : case "4" : case "7" : ca.. 더보기