The first day of training some of the annoying chatters (installation of various software)

Precautions

Do not use Chinese installation path, otherwise you might be wrong

About JDK

Download and install the JDK

JDK official website Download: https://www.oracle.com/technetwork/java/javase/downloads/index.html
official website face is as follows: you can select and download the latest version
Here Insert Picture Description
to choose their corresponding operating system, and download the exe

Installation is simple

1: jdk installation directory chosen at random just before the default installation directory \ java directory can be modified

2: Install the jre → Change → \ java directory before same and can be installed jdk directory

Note: If there is no installation directory requirements, can be all the default settings. No need to make any changes, two were directly click Next.

3. After the installation is complete there will be a directory jdk and jre folders (JDK version is the landlord)
Here Insert Picture Description

Configuring JDK environment variables

1. Right------- My Computer "Properties"

2. Select the "Advanced System Settings" Here Insert Picture Description3. Select the "Environment Variables"
Here Insert Picture Description
4. In the System variables below the "New" a variable called JAVA_HOME, variable values that you start the default installation path of JDK, the landlord path is C: \ Program Files \ Java \ jdk1.8.0_181, click OK, and system variables in a multi-variable JAVA_HOME, and then determine to complete the configuration environment variable.
Here Insert Picture Description
5. If you are unsure whether the configuration is successful, we can "win" + "R" input cmd, enter java -version to see your JDK version, if the configuration is successful, it will display the corresponding version.
Here Insert Picture DescriptionHere Insert Picture Description

TomCat installation process

Official website address: http://tomcat.apache.org/

下载后直接解压到你要的目录下,就算安装好了。
Here Insert Picture Description记住现在的路径,等会配置环境变量时要用的,我的是 D:\tomcat

像刚才那样进入到环境变量配置的位置,在上面的用户变量里分别添加名为 “CATALINA_HOME” 和“ CATALINA_BASE ”的两个变量,变量值就是你的安装路径
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
接着在下面的系统变量里的path里编辑
Here Insert Picture Description
新建一个环境变量,路径就是在上面路径之后加 \bin ,一路确定,即可完成环境变量配置。
Here Insert Picture Description

Tomcat运行

打开bin目录下的startup.bat,双击运行,这就成功了。关闭就是双击bin目录下的shutdown.bat

Here Insert Picture Description也可以通过cmd命令行输入startup.bat运行开启。
Here Insert Picture Description在开启tomcat服务后打开浏览器,输入 http://localhost:8080 成功显示页面,证明安装并配置成功!

Here Insert Picture Description

安装IDEA(基本不需要设置什么)

官网可以下载IDEA最新版,http://www.jetbrains.com/

双击exe运行安装程序
Here Insert Picture Description
点击——“next”
Here Insert Picture Description
选择安装路径,可以手动修改,懒得可以跳过这一步,直接next,不过最好还是修改一下。
Here Insert Picture Description
这里根据你电脑的位数选择64位或32位,大部分都是64位的吧,现在。后面关联文件点一个java就好,不过全点也没事,看个人喜好。download jdk 可以不勾,因为之前我已经装过JDK了,然后点击——“next”。

Here Insert Picture Description
最后Install就行了,等待系统自动给你安装好。
第一次打开会有是否接受协议,接受就好,然后就可以愉快地使用IDEA了。

Here Insert Picture Description

MySQL安装

以 Mysql 5.5.58 为例

双击运行安装程序
Here Insert Picture Description

点击——“next”
Here Insert Picture Description
点接受再next
Here Insert Picture Description
选择第一个Typical
Here Insert Picture Description
点安装就可以了
Here Insert Picture Description
finish,并开始设置Instance Configuration Wizard
Here Insert Picture Description
点击——next
Here Insert Picture Description
Detailed Configuration 详细配置,再改配置过程中列出了详细的个性化配置向导

Standard Configuration 标准配置,与详细配置相比,该配置过程比较简单

选择第一个,再点击——next
Here Insert Picture Description
Developr Machine:开发机,该类型应用将会使用最小数量的内存

Server Machine:服务器,该类型应用将会使用中等大小的内存

Dedicated MySQL Server Machine:专用服务器,该类型应用将使用当前可用的最大内存

选择Developer machine
Here Insert Picture Description
大部分设置按默认的就可以了
Here Insert Picture Description
Here Insert Picture Description
这里选第三个,编码格式选utf8,不然之后数据库里的中文会乱码
Here Insert Picture Description
Here Insert Picture Description
这里选择第一个设置数据库的密码,用户名就是root,底下的enable勾选可以让远程计算机通过root用户登陆MySQL
Here Insert Picture Description
点执行,等待安装程序完成
Here Insert Picture Description
安装过程到此就结束了
Here Insert Picture Description
有的用户可能会在最后的安装过程中程序无响应,可能原因是之前电脑上安装过Mysql但没有卸载干净, 删除C:/ProgramData的MySQL文件夹,在清空Mysql的注册表,重新安装就好了。

Maven安装

官网下载maven:http://maven.apache.org/download.cgi

确保电脑上以安装有JDk,下载完解压到你想要的文件夹就可以用了,不用安装。

接下来配置系统变量,在系统环境变量里添加一个M2_HOME的变量名,变量值是安装时的路径。

Here Insert Picture Description
编辑环境变量Path,路径如下,一直到bin目录下。

Here Insert Picture Description
至此,maven已经完成了安装,我们可以通过DOS命令检查一下我们是否安装成功。

Here Insert Picture Description

配置Maven本地仓库

  1. 在D:\Program Files\Apache\目录下新建maven-repository文件夹,该目录用作maven的本地库。

  2. 打开D:\Program Files\Apache\maven\conf\settings.xml文件,查找下面这行代码:

<localRepository>/path/to/local/repo</localRepository>

localRepository节点默认是被注释掉的,需要把它移到注释之外,然后将localRepository节点的值改为我们在3.1中创建的目录D:\Program Files\Apache\maven-repository。

  1. localRepository节点用于配置本地仓库,本地仓库其实起到了一个缓存的作用,它的默认地址是 C:\Users\用户名.m2。

当我们从maven中获取jar包的时候,maven首先会在本地仓库中查找,如果本地仓库有则返回;如果没有则从远程仓库中获取包,并在本地库中保存。

此外,我们在maven项目中运行mvn install,项目将会自动打包并安装到本地仓库中。

  1. 运行一下DOS命令
mvn help:system

如果前面的配置成功,那么D:\Program Files\Apache\maven-repository会出现一些文件。

四、配置Eclipse的Maven环境

  1. Eclipse Oxygen,打开Window->Preferences->Maven->Installations,右侧点击Add。
    Here Insert Picture Description

  2. 设置maven的安装目录,然后Finish
    Here Insert Picture Description

  3. 选中刚刚添加的maven,并Apply。

Here Insert Picture Description

  1. 打开Window->Preferences->Maven->User Settings,配置如下并Apply:

Here Insert Picture Description

At this point, Maven installation and configuration all over.

Nodepad ++ installation

Double-click to run the program, in addition to its own installation path can be manually set, other options are available by default. End of the installation.

Guess you like

Origin blog.csdn.net/zwqzwqzwq233/article/details/93659771