[ Server ][ Linux ] CentOS7 AAI ( apm ) 설치 후 설정 > linux

본문 바로가기

사이트 내 전체검색

linux

[ Server ][ Linux ] CentOS7 AAI ( apm ) 설치 후 설정

작성일 19-08-08 16:45

페이지 정보

작성자 웹지기 조회 4,017회 댓글 0건

본문

apachezone.com의 AAI 정식버젼 설치 후 추가작업 목록

( varnish 설치는 포함하지 않아도 됨 )

 

@/etc/cron.daily/backup 파일을 에디터로 열고 '패스워드' 를 찾아서 mysql root 패스워드로 교체

# vim /etc/cron.daily/backup

 

@vsftpd서비스 설치 확인

# systemctl status vsftpd.service


@미설치시 다음처럼 뜸

# Unit vsftpd.service could not be found.


@vsftpd 설치

# yum -y update

# yum install -y vsftpd

# systemctl enable vsftpd.service


@방화벽 한번에 설치

# firewall-cmd --permanent --zone=public --add-port={21,2020,80,8080,443,3306}/tcp

# firewall-cmd --reload

# firewall-cmd --list-all


@방화벽 하나씩 설정

# firewall-cmd --list-all

# firewall-cmd --permanent --zone=public --add-port=21/tcp

# firewall-cmd --permanent --zone=public --add-port=443/tcp

# firewall-cmd --permanent --zone=public --add-port=3306/tcp

# firewall-cmd --permanent --zone=public --add-port=80/tcp

# firewall-cmd --reload

# firewall-cmd --list-all


@방화벽 포트 삭제

# firewall-cmd --permanent --zone=public --remove-port=80/tcp

# firewall-cmd --reload

# firewall-cmd --list-all


@vsftpd.conf 설정 ( https://funyphp.com/archive/linux/15 )

# vim /etc/vsftpd/vsftpd.conf


@varnish 설치

@AAI version 3.8버젼부터는 자동으로 설치되지 않음.

@AAI_after_awstats폴더에서 varnish.sh 파일을  root의 APM 폴더로 업로드

# chmod 700 varnish_in.sh

# ./varnish_in.sh

# 설치 하시겠습니까? y

또는

# chmod 700 varnish_in.sh

# sh varnish_in.sh

# 설치 하시겠습니까? y


@설치완료 테스트

# varnishncsa

@쉘상에서 빠져나오기 Ctrl+z

@다른 방법

# curl -I http://example.com

@ 반응

HTTP/1.1 200 OK

Date: Sat, 26 Jan 2019 10:58:25 GMT

Content-Type: text/html; charset=UTF-8

Vary: Accept-Encoding, Cookie

X-Pingback: http://example.com

Link: <http://example.com/>; rel=shortlink

Age: 57047

X-Cache: Hit

Connection: keep-alive

 

@캐시 삭제

# varnisher purge http://example.com/

or

# varnishadm "ban req.http.host ~ example.com"

or

# curl -X PURGE http://example.com/


# certbot --apache -d aaa.com -d www.aaa.com

 

@80포트를 다른포트 로 설정하였다면 닫음과 같이 varnish 설치

# certbot --apache --http-01-port 888 -d aaa.com -d www.aaa.com


@root계정 접속 막기 / ftp&shell 포트 변경 - ssh설정 ( https://funyphp.com/archive/linux/26 )

# vim /etc/ssh/sshd_config

# firewall-cmd --permanent --zone=public --add-port=설정포트/tcp

# firewall-cmd --reload

# firewall-cmd --list-all

@ 콘솔프로그램 종료 후 설정포트값으로 재접속

 

@페이지 빠르게 새로고침시 403오류 막기 ( https://funyphp.com/archive/linux/55 )

 

@su(사용자전환) 관리자 그룹에서만 되게 수정하기 (https://funyphp.com/archive/linux/97)

 

@java설치 ( https://funyphp.com/archive/linux/46 ) ( https://funyphp.com/archive/linux/11 )

 

@ruby설치 ( https://funyphp.com/archive/linux/1 )

 

@node.js 설치 ( https://funyphp.com/archive/linux/57 )


@gitlab CE 버젼 설치 ( https://funyphp.com/archive/linux/52 )

 


추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 103건 2 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기