Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ VMware installed Linux system and JDK deployment     - Talk about Java EE Learning (Programming)

- Spacewalk Linux system configuration and installation (Linux)

- To create a full command line Android Build System (Linux)

- Linux install deploy Ansible (Linux)

- Binary tree and some basic operations with binary list (Programming)

- To_teach you three strategies to prevent the LAN IP address theft (Linux)

- PostgreSQL with the C Completing the storage process instances (Database)

- Create a project using Android Studio LinearLayout (Programming)

- Android Studio and Git Git configuration file status (Linux)

- CentOS 7.0 Automatic installation CD-ROM production Comments (Linux)

- Using PHP MySQL library (Programming)

- fcntl file locking function add (Programming)

- How to install Ubuntu California - the calendar application (Linux)

- Ceph performance optimization summary (v0.94) (Server)

- Linux operating process information (Linux)

- CentOS 6.6 command-line automatic completion (Linux)

- Use cmake to compile and install MySQL 5.5 (Database)

- Use MySQL optimization of security to prevent misuse of aliases (Database)

- To assign multiple IP addresses NIC on the CentOS 7 (Linux)

- VMware installed Linux system and JDK deployment (Linux)

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

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.
     
         
         
         
  More:      
 
- Virtualization and IT cooperation (Linux)
- By creating a personal technology blog Detailed GitHub (Linux)
- Linux commands to access the cheat sheet (Linux)
- Ubuntu 14.10 / 14.04 / 12.04 virtual users to install the printing software Boomaga (Linux)
- Linux Man Page Installation (Linux)
- In-depth summary of the PHP core of object-oriented (Programming)
- Installation and use the telnet command under CentOS 6.x (Linux)
- build Android environment on Ubuntu 12.04 (Server)
- Linux User Management (Linux)
- Linux processes in memory and memory cgroup statistics (Linux)
- Oracle to use full-text indexing (Database)
- Use the Find command to help you find those files that need to be cleaned (Linux)
- Nginx Performance Tuning Guidelines (Server)
- How Oracle implements random reads from specific combinations (Database)
- Docker - for the development and deployment of unified lightweight Linux containers (Linux)
- Linux C source code (Ascii HexToBinary: Converts hexadecimal string format ASCII codes) (Programming)
- A simple shell script for monitoring in Linux (Linux)
- CentOS How to mount the hard drive (Linux)
- Ubuntu 15.10 / 14.04 install subtitling software Aegisub (Linux)
- CentOS 7 update source - the use of domestic sources 163 yum (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.