Jun 19, 2020 - MariaDB - Linux CentOS 6 에서 MariaDB yum으로 Install

  • OS 정보 확인
[root@localhost ~]# cat /etc/*release*
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
cpe:/o:centos:linux:6:GA
[root@localhost ~]# cat /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

해당값을 다 설정했으면 MariaDB를 yum install 합니다.

yum install MariaDB

(yum install MariaDB-server MariaDB-client) 처럼 실행할 수 있으나, MariaDB로 우선 실행시킵니다.

[root@localhost ~]# rpm -qa | grep MariaDB
MariaDB-compat-10.2.32-1.el6.x86_64
MariaDB-client-10.2.32-1.el6.x86_64
MariaDB-server-10.2.32-1.el6.x86_64
MariaDB-common-10.2.32-1.el6.x86_64

로 정상적으로 설치된 것이 있는지 확입합니다.

  • MariaDB 실행
[root@localhost ~]# /etc/init.d/mysql start
Starting MariaDB.200619 18:39:40 mysqld_safe Logging to '/var/lib/mysql/localhost.localdomain.err'.
200619 18:39:40 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
 SUCCESS!

MariaDB를 실행시킵니다.

  • MariaDB root 패스워드 변경
/usr/bin/mysqladmin -u root password "123456"
  • 리스너 확인합니다.
[root@localhost ~]# netstat -anp | grep 3306  
tcp        0      0 :::3306                     :::*                        LISTEN      1529/mysqld  
  • MariaDB 접속 확인
[root@localhost ~]# mysql -uroot -p
Enter password:  
Welcome to the MariaDB monitor.  Commands end with ; or \g.  
Your MariaDB connection id is 5  
Server version: 10.1.22-MariaDB MariaDB Server  
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.  
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  
MariaDB [(none)]> quit  
Bye
  • MariaDB 재시작
    service mysql restart
    

Jun 19, 2020 - loaded plugins: fastestmirror

yum update 나 yum check-update 를 실행했는데 “loaded plugins: fastestmirror” 라는 메시지가 나오고 Hang on 되는 현상

  • KT olleh
    -. 기본 DNS 주소: 168.126.63.1
    -. 보조 DNS 주소: 168.126.63.2

  • SKT
    -. 기본 DNS 주소: 210.220.163.82
    -. 보조 DNS 주소: 219.250.36.130

  • LGU+
    -. 기본 DNS 주소: 164.124.107.9
    -. 보조 DNS 주소: 203.248.242.2

  • Google public
    -. 기본 DNS 주소: 8.8.8.8
    -. 보조 DNS 주소: 8.8.4.4

[root@localhost ~]# /etc/init.d/network restart
인터페이스 eth0 (을)를 종료 중:                            [  OK  ]
인터페이스 eth1 (을)를 종료 중:                            [  OK  ]
loopback 인터페이스 종료 중:                               [  OK  ]
loopback 인터페이스 활성화중 입니다:                       [  OK  ]
eth0 인터페이스 활성화중 입니다:  Determining if ip address 10.0.2.101 is already in use for device eth0...
                                                           [  OK  ]
eth1 인터페이스 활성화중 입니다:  Determining if ip address 192.168.56.101 is already in use for device eth1...
                                                           [  OK  ]

참고주소 : 제타위키

최종적으로 셋팅된 값은 다음과 같습니다.

vi /etc/sysconfig/network
GATEWAY=10.0.2.1

게이트웨이 값 추가합니다.

[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0  
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.0.2.101
NETMASK=255.255.255.0
NM_CONTROLLED=no
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"

BOOTPROTO=static 과 게이트웨이 위치의 문제로 확인되었습니다.

[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1  
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
IPADDR=192.168.56.101

간략한 정보만 남기고 나머지 정보들은 다 지웁니다.

[root@localhost ~]# vi /etc/resolv.conf
nameserver 8.8.8.8

해당값을 설정 후 reboot를 합니다.

Jun 15, 2020 - Failed to retrieve application JMX service URL and AttachProvider for the vm is not found

Failed to retrieve application JMX service URL and AttachProvider for the vm is not found

실제 원인은 build.gradle은 java 11 버전으로,
Run Configurations 의 JRE는 12 로 설정해서 발생하는 오류였습니다.

Toy project 진행시에,
경고 에러만 뜨고 정상적으로 화면은 부팅되어서,
미루고 미루다가 오늘 해결했네요.

참고주소 : https://youtrack.jetbrains.com/issue/IDEA-220666