Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ VMware installed Linux system and JDK deployment     - Using Oracle for Oracle GoldenGate to achieve a one-way data synchronization (Database)

- C language preprocessor command (Programming)

- Linux System Getting Started Learning: The Linux logrotate (Linux)

- Linux System Getting Started Learning: Repair fatal error openssl aes h no such file or directory (Linux)

- Hadoop upload files error solved (Server)

- NIC configuration parameters under Linux (Linux)

- DRBD-based installation and configuration of CentOS 6.5 (Server)

- Camera-based face recognition OpenCV crawl and storage format (Python) (Linux)

- Wildcards and special symbols usage comments under Linux (Linux)

- Linux System Getting Started Learning: Debian download, installation and graphical interface (Linux)

- Django how to generate content in non-HTML formats (Programming)

- Why JavaScript basic types can invoke methods (Programming)

- Manage SQL Server services login (start) account and password (Database)

- CentOS 6.2 install git error Perl5 (Linux)

- RHEL 7.1 compile and install Ganglia 3.7.1 (Server)

- After Ubuntu Password Forgot your way back (Linux)

- The execution order of Oracle WHERE condition is not from right to left (Database)

- Change the kernel boot sequence after CentOS 7 kernel upgrade (Linux)

- Linux non-graphical interface to install Oracle Database (Database)

- Compile Android libwebcore.so error occurs when solving (Programming)

  VMware installed Linux system and JDK deployment
  Add Date : 2018-11-21      

Due to a problem with my laptop, so this system includes all hard all week reloading the original Linux virtual machine is gone, so have the article and friends to share.

Because of the superiority of Linux environments (open source, low cost, safety, and powerful network), except for some small sites for convenience deployed outside the Windows environment, substantially all of the site's servers are using Linux environment (more large Internet companies use the Linux system as a server, such as Ali, mushrooms street, etc.).

As a Java programmer, if the server is not installed on your Linux system used by the company, or your PC is not a Linux system, but Windows systems, you should learn how various distributed components in Java and Linux environment the applied? The answer is to install VMware Virtual Machine + Linux system and the deployment of JDK environment.

OK, let's look at how to install Virtual Machine + Linux system in the Windows environment and the deployment of JDK environment, would later write some MemCache, Zookeeper, Hadoop, HSDIS (See byte code corresponding to the bottom of the assembly code used) etc. the articles are based on the Linux environment.

VM + Linux system installation

The first step is to install the virtual machine + Linux system in the Windows environment, there are generally three steps:

1. Install VMWare

Since we are using a Windows system, then run the Linux system must have a Linux system must run a container ---- virtual machine. Commonly used virtual machine VMWare, VisualBox, virtual machines using VMWare here, this is a powerful virtual machine software, download and install VMWare is very simple

Downloaded directly installed, nothing special point to note, go step by step on it.

2, download Ubuntu15

Linux operating system has a lot to choose from, but since we are using Linux's purpose is to learn, so choose Ubuntu, which is a desktop-application-based Linux systems, for personal use, this should be one of the most commonly used Linux operating system. Of course, for businesses and applications, the server will generally not use Ubuntu and series such as Debian, RedHat series, BSD series of virtual machines. OK, back to the topic, we downloaded the latest version of Ubuntu that is Ubuntu15

Select Ubuntu15.10, and now personal computers are generally 64-bit machine, so choose the 64-bit, a page appears after clicking, the user community to make some donations to support the development of Ubuntu, if you do not want to have nothing to donate , directly to the final

Click on the arrow where you can download, it is a iso file (CD image), there is 1.1G.

3, install Ubuntu in VMWare

VMWare installed, the Ubuntu download Well, the last is to install Ubuntu in the VMWare

Choosing the right path is the path you just download a CD image Ubuntu15 is located, and then click Next on it. Behind is to enter some personal information and password, and then the next step losers next point in the past, VMWare to start the installation Ubuntu15, this time to do is wait, there are some slow it, enter the password to enter Bahrain after twenty to thirty minutes after something like this:

Introduced earlier of, Ubuntu is a support for the Linux desktop operating system, in Ubuntu, if we do not want to use the command, you can point with the mouse. Of course, we use Ubuntu which lost a major significance, and to use the command in Ubuntu, click on the upper left corner of the box, enter the Terminal:

Click on the first one, that is, the red arrow is pointing to:

Thus, you can use a variety of Linux commands.

Deployment JDK

After installing Ubuntu, it is to deploy JDK environment (herein JDK1.7), install JDK environment about the following steps:

1. Download the Linux version of JDK1.7 installation package

First, you create a user directory using the mkdir command in the root directory, user directory and creates a file jdk directory used to store downloaded the jdk, and then use wget -O jdk1.7.tar.gz http: // download .Oracle.com / otn-pub / java / jdk / 7u79-b15 / jdk-7u79-linux-x64.tar.gz? AuthParam = 1453472312_ab0b4247373ff20da5741c2b3014eb7d command to download the Linux version of the JDK

wget -O command behind after parameter specifies the name of the file to save the downloaded used.

Some people may ask is where's the download address, enter the JDK official website http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk7-downloads-1880260.html, find the following section

Windows due to external and internal Linux two systems under Windows environment so copy this address in the Linux environment is useless, I was under the hand into the Linux environment, the address is not long anyway.

2, extract the installation package

OK, the download is complete, and then extract, use tar -zxvf jdk1.7.tar.gz

Unzip finished like this:

Outside the folder name is a bit long, we named it a little too simple, mv jdk1.7.0_79 java:

3, add an environment variable

Simply change the file name, and then they and we installed JDK in Windows environments, to set the environment variable, and the Linux system, the environment variable file is a hidden file, and Linux environments are hidden files. Beginning, first, open the configuration environment variable file, use the vi ~ / .bashrc open the file:

After opening, use shift + g drag the cursor to the last row and last file append the following four statements:

After writing and save it (press: then wq), friends who are new to Linux systems use vi text editor is bound to find it difficult to use, Baidu, vi usage habits more to adapt like, vi or belonging to a Linux system you must be familiar with one of the following commands.

4, set the environment variable

Set the environment variable is very simple to use source ~ / .bashrc to:

5, verify

Finally, we have to verify whether JDK1.7 deployed correctly, use java -version, if you see the following effect is proved JDK1.7 a successful deployment:

Of course, if you want to write the code to verify the correctness JDK deployment, also, I see behind an article code verification JDK deploys correctly.
- The relationship between UNIX and Linux (Linux)
- Understanding Java classes (Programming)
- VirtualBox snapshots (Linux)
- Kali Linux resolve GPG error KEYEXPIRED 1425567400 (Linux)
- C ++ function object (Programming)
- Modifying the system registry protection server security (Linux)
- Good wireless network security information spread in the air (Linux)
- Bash difference in single quotes and double quotes (Programming)
- JavaScript function closures Quick Start (Programming)
- Oracle utilized undo data recovery operations (Database)
- Linux operating system Study Notes (Linux)
- Mumble installation source VoIP application on Ubuntu (Linux)
- Java Adapter Mode (Programming)
- Linux, Chrome browser font settings beautification (Linux)
- How to deploy Icinga server (Server)
- MySQL concat function is SQL injection (Linux)
- Python console achieve progress bar (Programming)
- I like Linux Security (Linux)
- SecureCRT session buffer size settings (Linux)
- CentOS Linux build SVN server (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.