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

본문 바로가기
사이트 내 전체검색

linux

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

페이지 정보

작성자 웹지기 댓글 0건 조회 10,728회 작성일 19-08-08 16:45

본문

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

댓글목록

등록된 댓글이 없습니다.

Total 103건 1 페이지
  • 103 [ Server ][ Linux ] CentOS7 Hostname 변경 / 설정하기
  • 호스트 네임이 무엇으로 되어있는지 확인해보자. # hostname # localhost.localhostname # hostname &lt;변경하고 싶은 호스트명&gt; # hostname 이렇게 하면 현재 상태의 호스트명이 일회성으로 변경이 된다. 이를 영구적으로 변경하고 싶으면 다음의 명령을 사용한다. # hostnamectl set-hostname &lt;변경하고 싶은 호스트명&gt; ...
  • 웹지기 08-12 7881 0 0 댓글 0
  • 102 [ Server ][ Linux ] centos7 원격데스크탑 / XRDP
  • EPEL 설치 # yum install epel-release -y XRDP 와 VNC 설치 # yum install xrdp tigervnc-server -y 설치가 완료 되었다면 서비스 등록 # systemctl enable xrdp 방화벽을 확인하고 원격포트 방화벽이 설정 되어 있지 않으면 설정해준다. # firewall-cmd --permanent --zone=public --add-port=3389/tcp 재부팅하고 접속해보자 # reboot
  • 웹지기 08-05 8041 0 0 댓글 0
  • 101 [ Server ][ CentOS7] ModSecurity: Warning. Operator GE match…
  • [Tue Sep 24 13:17:58.056498 2019] [:error] [pid 3620:tid 140457073518336] [client 127.0.0.1:36381] [client 127.0.0.1] ModSecurity: Warning. Operator GE matched 5 at TX:inbound_anomaly_score. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_60_correlation.conf&...
  • 웹지기 09-24 8419 0 0 댓글 0
  • 100 [ Server ][ Linux ] kloxo-mr7 한글 패치
  • /usr/local/lxlabs/kloxo/httpdocs/lang 해당 경로에서 en-us 폴더를 다운받아서 ko-kr로 수정 language를 Korea KR 로 수정 각 php파일을 열어 번역을 해주고 파일 업로드 해주면 된다.
  • 웹지기 07-11 8567 0 0 댓글 0
  • 97 [ server ][ linux ] CentOS7 특정 포트 확인 및 강제 종료
  • 특정 포트를 사용중인지 확인하기 위한 방법 어디에 사용되는 포트인지 알고 싶은 포트를 8882 의 위치에 적는다. kill에서 -9는 강제종료 맨뒤 숫자는 pid 번호 # lsof -i TCP:8882 # COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME # php 109808 root 4u IPv4 201975 0t0 TCP *:8882 (LISTEN) # php 109808 root 7u IPv...
  • 웹지기 10-11 9722 0 0 댓글 0
  • 96 [ Server ][ Linux ] CentOS7 .gitignore 사용법 - git 전송 무시 목록 설정
  • .gitignore 파일이란? - ".gitignore" 파일은 Git에 소스를 올릴 때 특정 파일이름 패턴이 업로드 되지 않도록 설정하는 파일 # # =&gt; 주석 # logs =&gt; logs라는 파일 또는 폴더 # *.log =&gt; 확장자가 log라는 모든 파일 # error.log* =&gt; error.log 이부분까지 일치하는 파일 # tmp/ =&gt; tmp의 하위 폴더...
  • 웹지기 08-02 9944 0 0 댓글 0
  • 95 [ Server ][ Linux ] centos7 kloxo-mr7 웹으로 로그인 오류
  • 기본 사용자 이름은 admin 이고 비밀번호는 admin인데 로그인이 되지 않거나 웹페이지 열리지 않는 경우 방화벽을 먼저 설정해 봅니다 @웹브라우저로의 접속이 되지 않을 경우 방화벽 설정을 해준다 # firewall-cmd --permanent --zone=public --add-port={21,80,443,3306,7777,7778}/tcp # firewall-cmd --reload # firewall-cmd --list-all @사이트 로그인이 ...
  • 웹지기 07-10 10055 0 0 댓글 0
  • 93 [ Server ][ Linux ] httpd 2.4.x update to 2.4.39 on centos7 …
  • @mysql mariadb 업데이트 후 apache를 업데이트 하자 httpd 2.4.x 와 2.4.39의 버젼으로 업데이트 되면서 사용하지 않는 파일이 많아 오류가 많이 발생한다. @버젼 확인 # yum info httpd @epel 활성화 # yum install -y epel-release # cd /etc/yum.repos.d # wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rp...
  • 웹지기 07-11 10183 0 0 댓글 0
  • 92 [ Server ][ Linux ] CentOS7 htmlspecialchars 사용설정
  • htmlspecialchars 함수를 사용하기 위해서는 다음의 ini설정을 변경해 주어야 한다. php.ini filter.default, filter.default_flags 설정 AAI 멀티 버젼 같은 경우 각각의 PHP버젼별로 php.ini파일이 다르므로 검색을 해서 위치를 찾는다 # find / -name php.ini # /etc/opt/remi/php70/php.ini # /etc/opt/remi/php71/php.ini # /etc/opt/rem...
  • 웹지기 12-03 10200 0 0 댓글 0
  • 91 [ Server ][ Linux ] CentOS7 gitlab SSH key 생성
  • 터미널을 열어서 ssh key를 생성 # ssh-keygen # Generating public/private rsa key pair. # Enter file in which to save the key (/Users/funyphp/.ssh/id_rsa): 이메일주소 # Enter passphrase (empty for no passphrase): enter # Enter same passphrase again: enter gitlab에서는 비트수...
  • 웹지기 08-01 10271 1 0 댓글 2
  • 90 [ server ][ linux ] Centos7 ssl - 호스트에 필요한 TLS 설명 및 버젼 확인
  • Transport Layer Security 인터넷에서의 정보를 암호화해서 송수신하는 프로토콜, 넷스케이프 커뮤니케이션스가 개발한 SSL(Secure Sockets Layer)에 기반한 기술로, 국제 인터넷 표준화 기구에서 표준으로 인정하는 프로토콜이다. 표준에 명시된 정식 명칭은 TLS지만 아직도 SSL 이라는 용어가 많이 사용되고 있다. CentOS7 에서 다음으로 현재 사용하는 버젼을 확인 tls 1.2 # openssl s_client -connect www.googl...
  • 웹지기 10-18 10284 0 0 댓글 0
  • 89 [ Server ][ Linux ] centos7 kloxo-mr7 mysql 비빌번호 오류 수정 / 변경
  • 오류 비밀번호 수정이 되지않아서 링크를 따라 선행 후 변경을 시도해야 한다. # service mysql stop # /usr/bin/mysql_safe --skip-grant-tables &amp; # mysql -u root mysql #update user set password=password('123456') where user='root'; # quit # service mysql restart
  • 웹지기 07-10 10292 0 0 댓글 0
게시물 검색

회원로그인

접속자집계

오늘
12,925
어제
18,776
최대
61,067
전체
17,206,158

그누보드5
Copyright © funyphp.com. All rights reserved.