CSP/akamai-linodes

cent 설치 후 https, mysql 설치

사리생성 2024. 8. 11. 01:53

cent 7을 선택 후 설치.

해당 리눅스에 접속 후 http, mysql 서버 설치. 

 

에러 1.

[root@localhost ~]# sudo yum install -y httpd24 php72 mysql57-server php72-mysqlnd
http://mirrors.linode.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

 

 

에러 2.

sudo yum install -y httpd24 php72 mysql57-server php72-mysqlnd
No package httpd24 available.
No package php72 available.
No package mysql57-server available.
No package php72-mysqlnd available.
Error: Nothing to do

 

에러 해결

 

sed -i 's/http\:\/\/mirrors\.linode\.com/https\:\/\/vault\.centos\.org/g' /etc/yum.repos.d/*.repo

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install epel-release yum-utils

yum-config-manager --enable remi-php72

yum install -y php72
yum install php-cli  php-redis  php-brotli php-intl php-gd php-gmp php-imap php-bcmath php-interbase php-json php-mbstring php-mysqlnd php-odbc php-opcache php-memcached php-tidy php-pdo php-pdo-dblib php-pear php-pgsql php-process php-pecl-apcu php-pecl-geoip php-pecl-imagick php-pecl-hrtime php-pecl-json php-pecl-memcache php-pecl-mongodb php-pecl-rar php-pecl-pq php-pecl-redis4 php-pecl-yaml php-pecl-zip --skip-broken

 

 

yum install httpd

yum install mariadb-server
systemctl start mariadb


mysql -u root
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.68-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

 

 

[root@localhost ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   May 30 2023 14:01:11
[root@localhost ~]# mysql -V
mysql  Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1
[root@localhost ~]# php -v
PHP 7.2.34 (cli) (built: Jun  5 2024 08:13:19) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies
[root@localhost ~]#