본문 바로가기

반응형

Apache

CentOS 6.4에서 Apache 웹 서버와 Apache Tomcat을 연동하는 방법_u2 CentOS 6.4에서 Apache 서버와 Apache Tomcat을 연동하는 방법 1. JDK 설치 jdk1.6.0_38.tar.gz 파일을 다운로드하고, 적절한 디렉토리에 압축을 해제합니다. 환경 변수 JAVA_HOME을 설정하고, PATH에 JDK 바이너리 경로를 추가합니다. 예를 들어, JDK를 /opt/jdk1.6.0_38에 설치하고자 한다면, 다음과 같이 설정합니다. export JAVA_HOME=/opt/jdk1.6.0_38 export PATH=$JAVA_HOME/bin:$PATH 2. Apache HTTP Server 설치 httpd-2.2.24.tar.gz 파일을 다운로드하고, 적절한 디렉토리에 압축을 해제합니다. 아래 명령으로 Apache HTTP Server를 컴파일하고 설치합니다... 더보기
아파치 서버의 로그 삭제 스크립트 아파치 서버의 로그 삭제 스크립트 이 스크립트는 /var/logs 디렉터리에서 2일 이전에 수정된 파일을 찾아 삭제하는 역할을 합니다. vim cleanup_old_logs.sh #!/bin/bash # Script Name: cleanup_old_logs.sh # Description: Remove files in /var/logs that are older than 2 days cd /var/logs # Remove files modified more than 2 days ago find . -type f -mtime +2 -exec /bin/rm -f {} \; 주요 내용 cd /var/logs : 스크립트가 작업을 수행할 디렉터리로 이동합니다. find . -type f -mtime +2 -exe.. 더보기
[리눅스] 아파치 443 포트 올리기 아파치 443 포트 올리기 아파치(Apache) 웹 서버에서 443 포트를 사용하여 SSL/TLS 암호화된 연결을 지원하려면 다음 단계를 따를 수 있습니다. 1. SSL/TLS 인증서 가져오기 443 포트를 사용하여 HTTPS 연결을 설정하려면 유효한 SSL/TLS 인증서가 필요합니다. 인증서는 인증기관(Certificate Authority)에서 구매하거나 Let's Encrypt와 같은 무료 인증 기관을 통해 얻을 수 있습니다. 인증서를 얻은 후 .crt 및 .key 파일로 저장합니다. 2. Apache SSL 모듈 활성화 Apache에서 SSL을 사용하려면 SSL 모듈을 활성화해야 합니다. sudo a2enmod ssl 명령을 사용하여 SSL 모듈을 활성화합니다. 3. 가상 호스트 구성 Apache.. 더보기
[아파치] Apache Server Information Apache Server Information : Apache 서버의 상태와 성능에 대한 정보를 제공하고 서버 설정에 대한 종합적인 정보를 제공. # vi /usr/local/apache2/conf/extra/httpd-info.conf # # Get information about the requests being processed by the server # and the configuration of the server. # # Required modules: mod_status (for the server-status handler), # mod_info (for the server-info handler) # # Allow server status reports generated by mod_s.. 더보기
[Cacti] cacti 설치1 APM 설치 1. apache 설치 # yum -y install httpd 2. mysqㅣ 설치 # yum -y install mysql mysql-server mysql-devel 3. 필요 라이브러리 설치 # yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel fontconfig fontconfig-devel libxml2 libxml2-devel openssl openssl-devel gmp gmp-devel mhash mhash-devel libmcrypt libmcrypt-devel 4. php 및 php-mysql 연동 설치 # yum -y install php php-mysql.. 더보기
[apache][ERROR] apache Warning: DocumentRoot [/home/www/****] does not exist Apache 구동 시 error [root@scbyun-ns1 named]# service httpd restart httpd 를 정지 중: [ OK ] httpd (을)를 시작 중: Warning: DocumentRoot [/home/www/docs/www.scbyun.com] does not exist [ OK ] messages 로그 error [root@scbyun-ns1 named]# Oct 9 14:02:19 scbyun-ns1 setroubleshoot: SELinux is preventing the httpd from using potentially mislabeled files (./docs). For complete SELinux messages. run sealert -l f5fd0e.. 더보기
[apache][ERROR] httpd: Could not reliably determine the server's fully qualified domain name [root@ns1 src]# apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 해결 방법 (원본) #ServerName www.example.com:80 (수정) ServerName 127.0.0.1:80 더보기
cronolog를 컴파일하여 설치하고 Apache에 로그를 설정하는 방법 cronolog를 컴파일하여 설치하고 Apache에 로그를 설정하는 방법 Cronolog를 소스 코드를 직접 다운로드하여 컴파일하여 설치하고 Apache에 로그를 설정하는 방법은 아래와 같습니다. 1 .필요한 패키지 설치 컴파일에 필요한 일부 개발 패키지를 설치합니다. sudo yum install -y gcc make 2. Cronolog 다운로드 및 설치 Cronolog의 공식 웹 사이트(http://cronolog.org/)에서 소스 코드를 다운로드합니다. cd /usr/local/src wget http://cronolog.org/download/cronolog-1.6.2.tar.gz tar -xzvf cronolog-1.6.2.tar.gz cd cronolog-1.6.2 이제 소스 코드 디렉토리.. 더보기

728x90
반응형