Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ VMware installed Linux system and JDK deployment     - OpenSUSE GPG Comments (Linux)

- Update GAMIT10.6 command (Linux)

- Oracle 12c detailing the new features (Database)

- Fedora 22 installation and configuration optimization (Linux)

- CentOS / Linux NIC set IP address configuration (Linux)

- Java Virtual Machine Basics (Programming)

- Linux delete duplicate files Artifact: dupeGuru (Linux)

- Linux System Getting Started Learning: Fix ImportError: No module named scapy.all (Linux)

- Oracle PL / SQL based cursor (Database)

- MySQL multi-master-slave synchronization (Database)

- ethtool command Detailed (Linux)

- Implement Oracle dynamic registration of non-standard port 1521 (Database)

- Use FirewallD build dynamic firewall (Linux)

- Python in os.path Magical (Programming)

- ORA-04091 and Compound Trigger (Oracle 11g) (Database)

- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)

- Hadoop + Zookeeper NameNode achieve high availability (Server)

- MySQL enabled SSD storage (Database)

- Ora-14450: attempt to access ah transactional temptable already in use (Database)

- Oracle rebuild index script (Database)

  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.
- Batch download files using the explorer under Windows Server 2008 R2 (Server)
- Install FFmpeg compiling from source in Mac OS X environment (Linux)
- Linux file permissions bit forced bits and adventure Comments (Linux)
- MySQL Installation Troubleshooting (Database)
- secureCRT remote login Linux must first open the connection protocol (Linux)
- Valgrind * not * leak check tool (Linux)
- Ubuntu install driver manager Mint Driver Manager and Device Driver Manager (Linux)
- Spring AOP (Programming)
- CentOS 6.6 install rsync server (Server)
- Android studio multi-channel ultra-compact version of the package (Programming)
- Through Oracle to help restore MySQL data problems (Database)
- Strategy Games Ubuntu installation of Wesnoth 1.12.1 (Linux)
- Linux vi command list (Linux)
- Linux System Getting Started Tutorial: How to update outdated version of Ubuntu (Linux)
- Golang environment configuration recommendations (Linux)
- Linux Getting Started tutorial: How to backup Linux systems (Linux)
- Ubuntu will be written in a command file, executable file, source command (Linux)
- Automatic Clear date directory shell script (Linux)
- Linux suffered SYN flood attack setting (Linux)
- DRBD installation configuration, working principle and Recovery (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.