Some trivial things on Linux (JDK installation and MARIADB installation)

Source: Internet
Author: User

Because the company system involves copyright issues, so the developer's computer will be installed as a Linux system, although the installation is Ubuntu (the individual think the grid is not high enough), but some things will not be used. Some bits and pieces of things to write down the bad pen, later for their own inspection.

The first is the installation of the development environment, because it has been installed, no, according to the steps under normal circumstances can be. Some of the knowledge comes from the Internet.

The first is the JDK, which is demonstrated in the Jdk1.6bin version. Download

Jdk-7u25-linux-x64.tar.gz

Then set up the installation directory, Mkdir/usr/lib/java

Copy the compressed package to the directory you just created above. sudo cp Jdk6u45-linux-x64.bin/usr/lib/java

Then add execute permissions, unzip

$chmod +x jdk-6u45-linux-x64.bin Add Execute Permissions

$./jdk-6u45-linux-x64.bin extracting JDK to this directory

Get folder 1.6.0_45

Here's how to configure environment variables

Open profile with root, add path

sudo gedit/etc/profile

After the file, add the following code, save it.

# Set Java environment

Java_home=/usr/lib/java/jdk1.6.0_45

Classpath=.: $JAVA _home/lib: $JAVA _home/jre/lib: $CLASSPATH

Path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH

In this case, the JDK environment can only be seen under root to be configured successfully. We also need to output it as a global variable.

Just after the profile file, copy the following code in.

#export used to output a variable as a global variable

Export Java_home

Export CLASSPATH

Export PATH

# End of Set Java environment


In this case, you can run java-version at the terminal to see if the configuration was successful.

Note: You must log off the machine once or restart it once before testing in the terminal.

The JDK is loaded into this place. In fact, there are several ways to install. Everyone can go to see, modify

The/etc/environment file is also available. Not a brief introduction.  


Let's take a look at the mariadb, since the acquisition of MySQL may have to pay, so to mariadb. (The company is like this, what free use of what)

I am directly installed in the terminal mariadb, simply say, actually have to go to the official website to understand the people know that this is a complete idiot installation.

First go to MARIADB's official website to download page, see

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/3B/wKioL1VB7hyAtQyDAAFouaB4AFE226.jpg "title=" Depth 20150430164816.png "alt=" Wkiol1vb7hyatqydaafouab4afe226.jpg "/>

There will be a Linux distribution, click on the right side to choose the right version and then there will be commands to teach you how to get mariadb,


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/40/wKiom1VB7Vizad-IAALIvR-z3QE852.jpg "title=" Depth 20150430165146.png "alt=" Wkiom1vb7vizad-iaalivr-z3qe852.jpg "/>


Copy and paste the code into the terminal, always?

If you want the GUI management tool after the installation, try the following command to install MySQL's own work Bench

sudo apt-get install Mysql-workbench

It will appear in the Application menu after loading.

This article is from the "Just Do It" blog, so be sure to keep this source http://davenzeng.blog.51cto.com/3896952/1640982

Some trivial things on Linux (JDK installation and MARIADB installation)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.