The road to java learning-1. The software and environment configuration required for the early installation

1.jdk installation

jdk is the development and compilation environment of JAVA, which contains many libraries, namely jar packages, and jre jvm virtual machine. jdk is the most basic toolkit for java language development. It is the foundation of java program operation and the foundation of various IDE development environments. It
is developed by sun company and has been acquired by oracle. Whether you want to learn java programming or build jsp
web development The environment, or the android development environment, is inseparable from it.

First enter https://www.oracle.com/java/technologies/jdk8-downloads.html this website, after entering the website you will see such a page

Insert picture description hereAfter entering, it will display the latest version of jdk. If you want to download the previous version of jdk, you need to slide down the page and find the Java for Developers in the red circle in the
Insert picture description here
figure below. Click to enter and then
Insert picture description here
slide the page to At the bottom,
Insert picture description here
click Download to download the previous version of jdk
Insert picture description here

Next is the installation of jdk. To install
on the official website, you need to log in before downloading. Downloading only needs to install according to the process.

After installation, you need to modify the jdk environment variables.

1.2jdk environment variables

The steps to configure environment variables are as follows: right click on my computer -> advanced system settings -> environment variables -> new system variables -> add new system variables to path.

Modify JAVA_HOME
Insert picture description here

Modify the PATH
system variable -> find the Path variable -> edit, fill in %JAVA_HOME%\bin;%JAVA_HOME\jre\bin at the end of the variable (Note: If there is no ";" at the end of the Path variable value,
fill in "; ", then fill in the above value), then click "OK"
Insert picture description here
Insert picture description here

At this point, the jdk installation is complete, then open the console and enter javac -version to verify whether the jdk is installed successfully

Insert picture description here

2. Tomcat installation

Tomcat server is a free and open-source Web application server, which is a lightweight application server. It is commonly used in small and medium-sized systems and where there are not many concurrent users. It is the first choice for developing and debugging JSP programs.

First enter the official website http://tomcat.apache.org/ to download tomcat

Choose any version of tomcat in the red box to download
Insert picture description here

After entering as follows

Choose 32-bit or 64-bit download
Insert picture description here

After downloading, decompress, the decompression address is arbitrary, but the path should not contain Chinese and special characters !

tomcat的安装目录介绍:

bin: executable files.
conf: the configuration file of the tomcat server.
lib: the jar package
that tomcat needs to rely on after startup. logs: the log file after tomcat works.
webapps: the directory of the Tomcat project.
work: After the jsp file is translated, it is saved in the current directory, where the session object is saved after serialization

2.1 configure tomcat environment variables

Right-click on My Computer -> Advanced System Settings -> Environment Variables -> New System Variable -> Add the new system variable to the path.
Create a new CATALINA_HOME system variable, and enter the JDK installation address in the variable value;
Insert picture description here

Then find the Path in the system variables and
Insert picture description here
click edit, and add %CATALINA_HOME%\bin at the end;

After that, start Tomcat, double-click startup.bat under bin under Tomcat to start Tomcat , there will be a black window, do not close the black window. (If it is closed, it is equivalent to stopping tomcat.)

Enter in the browser address bar: http://localhost:8080 or http://127.0.0.1:8080localhost, if you see the following page, it proves that the startup is successful ,Insert picture description here

3.mysql installation

1. Go to the official website to download the required version of mysql.

Insert picture description here

Insert picture description here
Insert picture description here
There are two versions to choose from, one is the zip format, the other is the installation package format, you can choose according to whether you are 32-bit or 64-bit.

3.1 Installation package version

Run "setup.exe".

Click next and
Insert picture description here
click next to
Insert picture description here
select the installation type:

Typical (typical installation): Only install the MySQL server, mysql command line client, and command line utilities. Command line clients and utilities include mysqldump, myisamchk and several other tools to help you manage the MySQL server.

Complete (complete installation): All components included in the package will be installed. The fully installed package includes components including embedded server libraries, benchmark suites, supporting scripts, and documentation.

Custom (custom installation): Allows you to fully control the packages and installation paths you want to install.

Insert picture description here
Click Install to install

Insert picture description here

After that, click next until you reach the page shown in the figure below.

Detailed Configuration: Detailed configuration options are suitable for advanced users who want more granular control over server configuration.

Standard Configuration (Standard Configuration): The Standard Configuration option is suitable for new users who want to quickly start MySQL without having to consider server configuration.
Select the Standard Configuration (standard configuration) option, the MySQL Configuration Wizard (configuration wizard) automatically sets all configuration options, but does not include service options and security options.

Choose Detailed Configuration or Standard Configuration according to your needs , and then click next.

Insert picture description here

Choose server type

Developer Machine: This option represents a typical personal desktop workstation. Suppose there are multiple desktop applications running on the machine. Configure the MySQL server to use the least system resources.

Server Machine (server): This option represents the server. The MySQL server can run with other applications, such as FTP, email, and web servers. The MySQL server is configured to use an appropriate proportion of system resources.

Dedicated MySQL Server Machine (dedicated MySQL server): This option represents a server that only runs MySQL service. It is assumed that no other applications are running. The MySQL server is configured to use all available system resources.

Insert picture description here

Multifunctional
Database: Select this option to use InnoDB and MyISAM storage engines at the same time, and allocate resources equally between the two engines. It is recommended that users who frequently use two storage engines choose this option.

· Transactional Database Only (transactional database only): This option uses both InnoDB and MyISAM storage engines, but assigns most server resources to the InnoDB storage engine. It is recommended that users who mainly use InnoDB only occasionally use MyISAM choose this option.

· Non-Transactional Database Only: This option completely disables the InnoDB storage engine and assigns all server resources to the MyISAM storage engine. It is recommended that users who do not use InnoDB choose this option.

Insert picture description here
Select the hard drive
Insert picture description here

Set the database password.
Insert picture description here
Wait for the installation to complete.
Insert picture description here
If the following figure shows, the installation is successful.
Insert picture description here
Click Finish to complete the installation.

Guess you like

Origin blog.csdn.net/hzl529/article/details/100601765