In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Source code of this article: GitHub click here | | GitEE click here |
1. Build JDK1.8 environment 1. Upload files and decompress [root@localhost mysoft] # tar-zxvf jdk-8u161-linux-x64.tar.gz [root@localhost mysoft] # pwd/usr/local/mysoft [root@localhost mysoft] # mv jdk1.8.0_161 jdk1.82, check the environment Installed and deleted [root@localhost mysoft] # ps-aux | grep java [root@localhost mysoft] # rpm-e-nodeps rpm-qa | grep java3, configure environment variable [root@localhost /] # vim / etc/profile# file and append the following content shit+g to the end of the file # JAVA_HOMEexport JAVA_HOME=/usr/local/mysoft/jdk1.8export PATH=$PATH:$JAVA_HOME/bin4, Check for successful installation [root@localhost /] # java-versionopenjdk version "1.8.0mm 161" OpenJDK Runtime Environment (build 1.8.0_161-b14) OpenJDK 64-Bit Server VM (build 25.161-b14) Mixed mode) 2. TOMCAT8 installation 1, upload installation package [root@localhost mysoft] # tar-zxvf apache-tomcat-8.5.40.tar.gz [root@localhost mysoft] # mv apache-tomcat-8.5.40 tomcat8.52, launch service [root@localhost bin] # pwd/usr/local/mysoft/tomcat8.5/bin [root@localhost bin] # / startup.sh Tomcat started.3, access test http://127.0.0.1:8080/ OK 3, MySQL5.7 installation 1, Uninstall mariadb [root@localhost /] # rpm-qa from the original system | grep mariadbmariadb-libs-5.5.56-2.el7.x86_64 [root@localhost /] # rpm-e-nodeps mariadb-libs [root@localhost /] # rpm-qa | grep mariadb2, get the official address
Address: https://dev.mysql.com/downloads/repo/yum/https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm3, Yum source installation wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm[root@localhost /] # rpm-ivh mysql80-community-release-el7-3.noarch.rpm [root@localhost /] # yum repolist all | grep mysqlmysql57-community/x86_64 MySQL 5.7 Community Server disabledmysql80-community/x86_64 MySQL 8.0 Community Server enabled: 113mysql80-community-source MySQL 8.0 Community Server-disabled. ..
The default version of the installation package enabled in the yum source is MySQL8.0, which is switched to 5.7. execute the following command
[root@localhost /] # yum-config-manager-disable mysql80-community [root@localhost /] # yum-config-manager-enable mysql57-community
4. MySQL installation startup [root@localhost /] # yum install mysql-community-server# requires installation dependency prompt. Select yTotal download size: 192 MInstalled size: 865 MIs this ok [y/d/N]: y
View version
[root@localhost /] # mysql-Vmysql Ver 14.14 Distrib 5.7.26, for Linux (x86 / 64) using EditLine wrapper
Start to view status
[root@localhost /] # systemctl start mysqld.service [root@localhost /] # systemctl status mysqld.service mysqld.service-MySQL Server Loaded: loaded (/ usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2019-05-14 17:26:32 CST; 31s ago
Generate a temporary password for the root account
[root@localhost /] # grep 'temporary password' / var/log/mysqld.log2019-05-14T09:26:28.657250Z 1 [Note] A temporary password is generated for root@localhost:! Bh (GT.od9L
Set the root user password
# the problem of insufficient strength of password policy is prevented here: mysql > set global validate_password_policy=LOW;mysql > alter user 'root'@'localhost' identified by' husky123456'
In this way, the basic environment of Java has been built!
Source code address GitHub address https://github.com/cicadasmile/linux-system-baseGitEE address https://gitee.com/cicadasmile/linux-system-base
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.