CentOS에서 Mysql,MariaDB,JDK 설치방법들

2021. 9. 14. 15:13리눅스

반응형

맨 아래에 JDK를 설치하는것중 openJDK와 openJDK-devel 이 있다.

개발적으로 조금 더 추가된 JDK인듯하다

stackoverflow에서 찾아본결과 아래와 같이 설명했다.

  • java-1.7.0-openjdk.x86_64 is the package containing the JRE
  • java-1.7.0-openjdk-devel contains the development stuff (basically things you should not need, if you only want to run Java applications).

 

Q6. centOS7 에서 MySQL 설치법은?

 

  1. yum -y install http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
  2. yum -y install mysql-community-server
  3. systemctl start mysqld
  4. vi /var/log/mysqld.log
  5. mysql -u root -p
  6. ALTER USER 'root'@'localhost' IDENTIFIED BY 'ktlitgood12!@'
  7. FLUSH PRIVILEGES;
  8. vi /etc/my.cnf my.cnf update (UTF-8)
  9. systemctl restart mysqld
  10. mysql -u root p ktlitgood12!@
  11. status

 

Q7. centOS7 에서 MariaDB 설치법은?

 

  1. vi /etc/yum.repos.d/MariaDB.repo
  2. yum install MariaDB
  3. rpm -qa | grep MariaDB
  4. mariadb --version
  5. systemctl start mariadb
  6. /usr/bin/mysqladmin -u root password 'ktlitgood12!@'
  7. netstat -anp | grep 3306
  8. vi /etc/my.cnf my.cnf update (utf8)
  9. systemctl restart mariadb
  10. mysql -u root p ktlitgood12!@
  11. show variables like 'c%'
  12. systemctl enable mariadb
  13. systemctl is-enabled mariadb

 

[참조 사이트] https://bamdule.tistory.com/59

 

 

 

Q8. centOS7 에서 Tomcat 설치법은?

 

  1. http://tomcat.apache.org/ tar.gz file download
  2. tar -zxvf apache-tomcat-7.0.xx.tar.gz
  3. mv apache-tomcat-7.0.xx (이전 서버 경로)
  4. (이전 서버 경로)/bin ./startup.sh ./shutdown.sh
  5. ps -ef | grep tomcat
  6. netstat -anp | grep java

 

[참조 사이트] https://jeongyd.tistory.com/51

 

Q9. centOS7 에서 JDK 설치법은?

 

  1. yum list all | grep java-1.7
  2. yum install java-1.7.0-openjdk.x86_64  << jre!

yum install java-1.8.0-openjdk-devel.x86_64 << 진짜 jdk(개발자용 devel)

  1. alternatives --config java
  2. java -version

 

[참조 사이트] https://winixsite.wordpress.com/2015/05/02/centos7-%EC%97%90-java-1-7-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0/

반응형