일단 업데이트 먼저...
# yum update
허거거.. 195개 파일이나 업데이트를 한다.. ㅠ.ㅠ
# yum install httpd
2.4.6 버전이 설치된다.
기본 저장소에서 설치시 5.5 버전이 설치된다.
CentOS 7에 최신 버전 설치를 위해 아래 주소에서 버전 확인
http://downloads.mariadb.org/mariadb/repositories/
MariaDB - Setting up MariaDB Repositories - MariaDB
To generate the entries select an item from each of the boxes below. Once an item is selected in each box, your customized repository configuration will appear below. 1. Choose a Distro SLES openSUSE Arch Linux Mageia Fedora CentOS RedHat Mint Ubuntu Debia
downloads.mariadb.org
오늘 (2020년 4월 16일) 기준 10.4 버전이 최신 stable 버전이다.
저장소 파일 생성하고 내용 기록
# vi /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
MariaDB 설치
# yum install MariaDB-server MariaDB-client
10.4 버전이 설치된다.
root 비밀번호 만들기
# systemctl start mariadb.service
# mysqladmin -u root password 사용할비번
php도 최신버전 설치를 위해서는 저장소 먼저 설치 필요!
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
기본적으로 php5.4가 설치되므로.. 7.4를 지정하여 설치
# yum --enablerepo=remi-php74 install php
# yum --enablerepo=remi-php74 install php-mysql php-mcrypt php-mbstring php-xml php-gd
버전 확인
# php --version
PHP 7.4.5 (cli) (built: Apr 14 2020 12:54:33) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
php 7.4.5 설치 완료!!
CentOS 7 설정 - 2. ssh 포트 변경 (0) | 2020.04.16 |
---|---|
CentOS 7 설정 - 1.프롤로그 (0) | 2020.04.16 |
[TIP] PHP 세션 유지 ( session timeout ) 설정 (0) | 2016.06.15 |
[TIP] 리눅스(CentOS) 에서 PHP 소켓 Permission Denied 나올때 (0) | 2016.02.15 |
[리눅스] 서버 시간 변경 (Timezone 변경) (1) | 2015.05.26 |