Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOs6.9 server version installation diagram (including java and mysql)

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

First create an empty system disk (centOs64 bit version selected)

Click Edit Virtual Machine Settings on the figure

Select the image file of centOs, and then click OK. Next, turn on the virtual machine

Select the first option after this screen appears

After the above screen appears, select skip to skip to the official interface of the installation.

Next all the way until the following picture appears.

Then choose Yes, ignore all data (you don't have to worry about the data, because you started with a blank disk)

And then the following picture appears.

You are free to change your name, and then be sure to configure the network before clicking next (otherwise you will not be able to access the network)

Select System eth0 first, and then click Edit (or double-click System eth0)

Tick the automatic connection (do not move the rest), and then click apply

After continuing to appear this screen, the password can be set at will, as long as you can remember it. If the password is too simple, the following screen will appear.

But you can just click the back button.

Click all the way

Then click to write the changes to disk

Select Basic Server and click next to install it (the following is a long wait)

It will appear after it is over.

Then click reboot and it will reboot.

The following is the login, where the virtual machine that the blogger uses SecureCRT to connect to is the same if not used, all in command mode (but check the ip of the virtual machine before connecting, otherwise you can't connect)

You can view the ip using ifconfig.

If you don't want to use this ip, first check the gateway of the virtual machine, and then change it to a fixed ip (this tutorial is very popular, so I won't cover it).

After logging in, check to see if you have your own Java and MySQL

Rpm-qa | grep javarpm-qa | grep mysql

Then rpm-e-nodeps the packages in your system

Then upload the installation packages under the Linux of java and mysql to the system (this can be downloaded from their respective websites. It's easy to find)

There are many ways to upload. I chose the sftp method.

You can see that two of them have been uploaded to centos.

Create a new directory java under the / usr/local directory and move jdk's packages to that directory

Mkdir / usr/local/javamv jdk-8u121-linux-x64.tar.gz / usr/local/java/

Then go to the directory and extract the jdk file (I usually unzip and delete the package)

Cd / usr/local/java/tar zxf jdk-8u121-linux-x64.tar.gz

The following needs to install dependencies

Yum install glibc.i686

And then open a file.

Vi / etc/profile

Add at the bottom (there is a jdk version I installed, which can be replaced with my own)

# set Java environmentJAVA_HOME=/usr/local/java/jdk1.8.0_121CLASSPATH=.:$JAVA_HOME/lib.tools.jarPATH=$JAVA_HOME/bin:$PATHexport JAVA_HOME CLASSPATH PATH

Then save the exit and enter

Source/etc/profile

Type java-version at this time to see the version information of Java.

Install mysql below

Also create a new mysql folder under / usr/local and move the installation files of mysql to that directory

Tar-xvf MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar decompression

Get a few files.

Install the server first

Rpm-ivh MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm and then install the client rpm-ivh MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm

Check whether mysql is running first.

Service mysql status

There is no need to run

Service mysql start

The first time you log in, you need to get the password from a file.

Vi / root/.mysql_secret

Get # The random password set for the root user at Sat May 20 04:30:32 2017 (local time): IpqhuehJXFzwboYf

Next, log in to mysql

Mysql-u root-p IpqhuehJXFzwboYf

You need to change your password immediately after logging in.

Set password = password ('your password')

And then the installation is complete.

If you want to access remotely, you need to open the port (all bloggers turn off the firewall directly)

The above is the installation diagram of the centOs6.9 server version introduced by the editor (including java and mysql). I hope it will be helpful to you. If you have any questions, please leave a message and the editor will reply to you in time. Thank you very much for your support to the website!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report