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

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

linux

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

페이지 정보

작성자 웹지기 댓글 0건 조회 4,049회 작성일 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 페이지
  • 열람중 [ Server ][ Linux ] CentOS7 AAI ( apm ) 설치 후 설정
  • apachezone.com의 AAI 정식버젼 설치 후 추가작업 목록 ( varnish 설치는 포함하지 않아도 됨 ) @/etc/cron.daily/backup 파일을 에디터로 열고 '패스워드' 를 찾아서 mysql root 패스워드로 교체 # vim /etc/cron.daily/backup @vsftpd서비스 설치 확인 # systemctl status vsftpd.service @미설치시 다음처럼 뜸 # Unit vsftpd.s...
  • 웹지기 08-08 4050 0 0 댓글 0
  • 102 [ 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 4254 0 0 댓글 0
  • 101 [ Server ][ Linux ] CentOS7 Hostname 변경 / 설정하기
  • 호스트 네임이 무엇으로 되어있는지 확인해보자. # hostname # localhost.localhostname # hostname &lt;변경하고 싶은 호스트명&gt; # hostname 이렇게 하면 현재 상태의 호스트명이 일회성으로 변경이 된다. 이를 영구적으로 변경하고 싶으면 다음의 명령을 사용한다. # hostnamectl set-hostname &lt;변경하고 싶은 호스트명&gt; ...
  • 웹지기 08-12 4689 0 0 댓글 0
  • 100 [ Server ][ Linux ] CentOS7 AAI ( apm ) 설치 전 utf8 -> utf8mb4…
  • apachezone.com의 AAI 정식버젼 다운로드 기본적으로 문자셋이 utf8을 지향하고 있다. 이를 모두 utf8mb4로 변경을 한 후 설치를 해보자. FTP 또는 git을 통해 AAI를 서버에 업로드한다 업로드시에는 /root/AAI 폴더를 생성하고 이곳에 업로드를 한다. git으로 다운시는 자동으로 생성된다 AAI/APM/APMinstaller.sh 파일 452줄부터 462줄 - mysql utf8 =&gt; utf8mb4로 utf8_general_ci =&#...
  • 웹지기 08-09 4772 0 0 댓글 0
  • 99 [ 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 4791 0 0 댓글 0
  • 97 [ 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 5145 0 0 댓글 0
  • 96 [ 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 5265 0 0 댓글 0
  • 95 [ 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 5303 0 0 댓글 0
  • 93 [ 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 5341 0 0 댓글 0
  • 92 [ Server ][ Linux ] centos7 git / gitlab init 부터 pull 까지
  • 서버에서 git을 설치한 이후 사용해야 한다. git 버젼을 확인한다. # git --version git 사용자 이름을 추가하고 이메일을 설정한다. # git config --global user.name "your_name" # git config --global user.email "your_email" 원격지 저장 - 삭제는 add 대신 remove # git remote add ori...
  • 웹지기 08-01 5342 0 0 댓글 0
  • 90 [ 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 5417 1 0 댓글 2
  • 89 [ Server ][ Linux ] CentOS7 Let's Encrypt 무료 SSL 인증서 와일드카드로 …
  • 입력시 일반 도메인(domain.com)과 와일드카드(*.domain.com) 도메인 두번 적는다 # certbot certonly --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d domain.com -d *.domain.com 이메일을 입력하라는 문구가 나오면 인증서 알림을 받을 이메일을 입력한다. # Saving debug log t...
  • 웹지기 12-12 5440 1 0 댓글 1
게시물 검색

회원로그인

접속자집계

오늘
264
어제
8,457
최대
33,828
전체
8,438,869

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