Notice
Recent Posts
Recent Comments
«   2025/12   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

개발

centos7 - APM 설치 - by yum 본문

centos

centos7 - APM 설치 - by yum

오키쿠마 2017. 11. 14. 13:53


1. A (apache)

● 설치

# yum -y install httpd

# systemctl start httpd.service

# systemctl enable httpd.service

● default Document root 

 /var/www/html/




2. P (PHP)

# yum -y install php
# systemctl restart httpd.service  (아파치 재시작 해야함)

● 동작확인

/var/www/html/info.php 파일생성
내용을 아래와 같이 입력후 저장


<?php

phpinfo();

?>


브라우저에 아래 내용 입력

http://서버주소/info.php



● 필요모듈 설치 (필요 하면 추가 설치)

yum -y install php-mysql php-odbc php-gd php-mbstring php-pear php-xml php-xmlrpc



3. M (MySQL)

●  설치

MySQL 대신 마리아 (명령 동일, 대세는 마리아인듯)

# yum -y install mariadb-server mariadb

# systemctl start mariadb.service

# systemctl enable mariadb.service


● root PW 설정 (root PW 부분 말고 걍 엔터)

# mysql_secure_installation






.................................................................

'centos' 카테고리의 다른 글

[CentOS 7] 방화벽 관리  (0) 2017.10.27
Comments