목차 1. 아파치 설치1-1. 아파치 관련 설치 압축 파일(apr, apr-util, pcre, apache) 다운로드 1-2. 다운로드 받은 아파치 관련 설치 압축 파일(apr, apr-util, pcre, apache) 풀기1-3. 개발툴 설치(./configure, make 오류 방지를 위한)1-4. apr 컴파일 + 설치1-5. apr-uti 컴파일 + 설치1-6. pcre 컴파일 + 설치1-7. apache 컴파일 + 설치 2. 톰캣커넥터 설치2-1. 톰캣 커넥터 다운로드/압축풀기 및 컴파일 + 설치 3. 톰캣 설치3-1. 톰캣 다운로드/압축풀기 4. 아파치, 톰캣 연동 설정 4-1. 아파치 workers.properties 파일 생성4-2. 아파치 mod_jk.conf 파일 생성4-3 아파치 ..
설치하고 싶은 디렉터리로 먼저 이동한다.# cd /home/test-user/was/ wget으로 톰캣압축파일을 다운로드 받는다.# wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-8/v8.0.22/bin/apache-tomcat-8.0.22.tar.gz 다운로드 받은 apache-tomcat-8.0.22.tar.gz파일을 현재 디렉터리에 압축을 해제한다.# tar -xvf apache-tomcat-8.0.22.tar.gz 압축을 해제한 apache-tomcat-8.0.22폴더명을 tomcat으로 변경해준다. (편의상)# mv apache-tomcat-8.0.22/ tomcat
총 메모리 크기 확인# cat /proc/meminfo | grep MemTotal CPU 코어 전체 개수# grep -c processor /proc/cpuinfo 물리 CPU 개수# grep ^processor /proc/cpuinfo | wc -l CPU당 물리 코어 수# grep 'cpu cores' /proc/cpuinfo | tail -1 CPU 모델명 확인# grep ^'model name' /proc/cpuinfo 파일 용량 점검# df -h 메모리 사용량 점검# free -m 아파치가 사용하고 있는 메모리 확인# ps -ylC httpd | awk '{x += $8;y += 1} END {print "Memory Usage (MB): "x/1024; print "Average Procce..
../conf/httpd.conf 파일을 열어서 아래와 같은 형식으로 수정하면 된다. ErrorDocument 503 /error/503.html HTTP 상태 코드 목록 100: Continue101: Switching Protocols200: OK, 에러없이 전송 성공202: Accepted, 서버가 클라이언트의 명령을 받음.203: Non-authoritavive Information, 서버가 클라이언트 요구중 일부만 정송204: Non Content, 클라이언트 요구를 처리했으나 전송할 데이터가 없음.205: Reset Content206: Partial Content300: Multiple Choisces, 최근에 옮겨진 데이터를 요청301: Moved Permanently, 요구한 데이터를 변..
apache/conf/httpd.conf 파일을 열어서 다음과 같이 수정한다. 1. LoadModule rewrite_module modules/mod_rewrite.so 구문의 주석을 해제 해준다. 만약 ..apache/modules/mod_rewrite.so 파일이 없다면 apache를 컴파일할때 rewrite 모듈을 사용하기 위해서 configure시 --enabled-rewrite 를 추가하면 된다. 2. 아래와 같은 구문을 부분에 추가하면 RewriteEngine On RewriteCond %{HTTP_HOST} !^www.domain.kr [nocase] RewriteRule ^(.*)$ http://www.domain.kr$1 [last,redirect=301] domain.kr로 접속시 자..
netstat -tulpn | grep LISTEN
# cd /usr/share/binFFMPEG를 설치할 디렉터리로 들어간다. # mkdir ffmpeg ffmpeg 폴더를 생성한다.# ll -a # cd ffmpeg생성한 ffmpeg 폴더로 들어간다. # wget http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-07-16.tar.gzwget으로 ffmpeg를 다운로드 받는다. ※ http://ffmpeg.gusari.org/static/64bit/ 여기서 원하는 버전을 골라 받으면 된다. # tar -xzf ffmpeg.static.64bit.2014-07-16.tar.gz다운로드받은 파일의 압축을 푼다. # ll -a # rm -rf ffmpeg.static.64bit.2014-07-1..
# 에러 메세지 Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. # 에러 설명 MySQL DB가 현재 안전업데이트모드(Safe Update Mode)로 설정이 되어있어서 Update시 Where절에 Key컬럼을 사용하지 않고 쿼리를 날리면 1175 오류가 나면서 업데이트가 정상적으로 되지 않는다. # 해결 & 안전업데이트모드 사용안함 설정 SET SQL_SAFE_UPDATES = 0;
어느날 AWS EC2 접속 후 MySQL에 접속하려고 로그인을 시도하는데 아래와 같은 오류가 발생하면서 로그인이 안됬다. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) 해결법 # service mysqld stop# chmod 755 -R /var/lib/mysql# chown mysql:mysql -R /var/lib/mysql# service mysqld start
- Total
- Today
- Yesterday
- Eclipse
- Java
- 자바스크립트
- Sandbox
- EC2
- 워크스페이스
- mysql
- 취득세 감면
- 주택임대사업자 등록
- db
- 포트
- 이클립스
- sample
- paypal
- 안드로이드
- 설치
- 리눅스
- 페이팔
- 페이팔 연동
- 페이팔 결제
- 페이팔 테스트
- Workspace
- apache
- Tomcat
- 주택임대사업자
- 샌드박스
- Linux
- AWS
- 톰캣
- 유효성검사
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |