반응형

분류 전체보기 130

[Apache] Apache + php 7.4.33 연동(TS버전) 2일차

문제점 고민 1. configure 의 속성 제대로 알기 - 참고 : https://httpd.apache.org/docs/2.4/ko/programs/configure.html 속성값 비교 후 변경./configure --prefix=/home/apachep/httpd-2.4.57 --enable-so --with-apr=/home/apachep/apr_setting/apr-1.7.4 --with-apr-util=/home/apachep/apr_setting/apr-util-1.6.3 --enable-ssl --enable-rewrite --enable-modules=most --enable-mods-shared=all --with-mpm=worker  에러 발생 2. 에러 해결 시도(1) 접속 : h..

WEB . WAS 2023.05.19

[Apache] Apache + php 7.4.33 연동(TS버전) 1일차

[ Apache 설치 ] 파일 다운로드명령어 : wget https://dlcdn.apache.org/httpd/httpd-2.4.57.tar.gz 압축 해제명령어 : tar zxvf httpd-2.4.57.tar.gz ./configure → make → make install  명령어 : ./configure --prefix=/home/apachep/httpd-2.4.57 --enable-so --with-apr=/home/apachep/apr_setting/apr-1.7.4 --with-apr-util=/home/apachep/apr_setting/apr-util-1.6.3 --enable-ssl --enable-rewrite --enable-modules=most --enable-mods-shar..

WEB . WAS 2023.05.18

[CORS] Cross-Origin Resource Sharing

CORS - 웹 브라우저에서 같은 출처의 리소스가 아닌 다른 출처의 리소스를 요청할 수 있게 하는 정책으로 동일 출처 정책(Same Origin Policy, SOP) 문제 해결 방법 - CORS는 리소스를 공유하려는 서버 간 정한 HTTP Header가 있을 때에만 리소스 접근을 허용하고 없을 때에는 접근을 제한한다. 요청 방식은 Simple Request 와 Preflight Request 가 있다. Simple Request · HTTP Method 가 GET, POST, HEAD 중의 방식을 사용하는 경우 · POST 방식일 경우 Content-type을 아래 중 1가지 사용 - application/x-www-form-urlencoded - multipart/form-data - text/pla..

지식 2023.05.10

[Linux] 특정 파일 검색 및 삭제

검색 명령어 ▶ find PATH [옵션] "파일이름.확장자" 옵션 · name : 파일명을 기준으로 검색 ex) find . -name "test.txt" 현재 디렉토리에서 test.txt 파일 찾기 find . -name "*.txt" 현재 디렉토리에서 txt 파일 찾기 find . -name "test.*" 현재 디렉토리에서 test 로 시작되는 파일 찾기 type : 파일 타입을 지정하여 검색 (d : 디렉토리 f: 일반파일 l: 심볼릭 링크) ex) find . -type d 현재 디렉토리에 존재하는 모든 디렉토리 검색 size : 파일 사이즈를 기준으로 검색(c : byte, k: kbyte) ex) find . -size +1024c 현재 디렉토리에서 1024byte 보다 사이즈가 큰 파일 ..

Server 2023.05.10

[CentOS] 고정 IP 설정

Vmware 를 통해서 CentOS 환경을 구축한 다음 로컬 PC 와 통신하면서 테스트를 할 일이 있었다. hosts 파일을 변경해서 도메인으로 이용하는데 자꾸 IP 주소가 바뀌어서 테스트가 불편했다. 그래서 고정 IP 설정을 하기 위한 작업을 진행했다. ▶ 경로 : /etc/sysconfig/network-scripts ▶ 파일 : ifcfg-ens33 (파일의 경우엔 다를 수 있음) 고정IP : 192.168.229.131 이 후엔 network 를 재시작하고 ifconfig 를 통해 IP를 확인한다.

Server 2023.05.09

[Tomcat] 세션클러스터링

■ 세션 클러스터링 - WAS 구성이 2대 이상일 때 동일한 세션 정보를 공유하기 위한 방법 - 톰캣 서버의 간단한 설정으로 세션 정보를 동기화 할 수 있다. 1) server.xml 추가 - 나는 밑으로 위치시켰다.Tomcat 1Cluster channelSendOptions="8" className="org.apache.catalina.ha.tcp.SimpleTcpCluster">Manager className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/> Channel className="org.apache.catalina.tribes...

WEB . WAS 2023.05.09
반응형