Java EE Enterprise Architecture build for WINDOWS10

Source: Internet
Author: User

Configuring JDK copies

Copy a local version of the Windows JDK
To perform the installation process, select the default installation path

Configuring Environment variables

Java_home
C:\Program files\java\jdk1.7.0_80

PATH
%java_home%\bin;%java_home%\jre\bin

CLASSPATH
.; %java_home%\lib;%java_home%\lib\tools.jar

Check

Java-version

Configuring Tomcat copies

Copy the local Windows version of Tomcat

Unzip and change the character encoding

Tomcat root directory--conf--server.xml, search for "8080"
Redirectport= "8443" after adding
Uriencoding= "UTF-8"

Save and exit configuration environment variables

Catalina_home
D:\apache-tomcat-7.0.75

Start Tomcat

D:
CD Apache-tomcat-7.0.75\bin
Startup.bat

Configure MAVEN copy, unzip

Copy the local Windows version of Tomcat and extract it to the root directory

Configuring Environment variables

Maven_home
D:\apache-maven-3.0.5

PATH
D:\apache-maven-3.0.5\bin

Configure FTP server copy, unzip

Copy the local Windows version of VSFTPD and extract it to the root directory

Run Setup (Setup cannot create the Ftpfile folder automatically due to the C-drive permissions issue, it needs to be created manually)

FTPServer.exe
User name:
Renb
Password:
Renb
Service Port:
21st
Shared directory:
C:\ftpfile

Configure Nginx Copy, unzip

Copy the local Windows version of Nginx, unzip to the root directory

Modify Nginx.conf

Conf--nginx.conf

Run Setup (sometimes the command line does not take effect, but the mouse double-click must be, confused)

Nginx.exe

View process

The Nginx.exe process appears in the process and starts successfully

Configure Nginx domain name, modify host file properties, give Full Control permission

C:\Windows\System32\drivers\etc\hosts

Add the following code:
127.0.0.1 www.renb.com
127.0.0.1 localhost

Save, Test

Http://www.renb.com

Modify Nginx master configuration file

D:\nginx-1.10.2\conf\nginx.conf

In the 95-line attachment, add the following code:
Include vhost/*.conf;

Create a Vhost folder

D:\nginx-1.10.2\conf directory, create a new Vhost folder

Creating an Nginx standard configuration file

Go to Vhost folder
New file
Image.renb.com.conf

Edit the file and add the following code:
server {
Listen 80;
AutoIndex off;
server_name image.renb.com;
Access_log C:/access.log combined;
Index index.html index.htm index.jsp index.php;
#error_page 404/404.html;
if ($query _string ~* ". [;‘ <>].") {
return 404;
}
Location ~/(Mmall_fe|mmall_admin_fe)/dist/view/* {
Deny all;
}
Location/{
Root C:\ftpfile\img;
Add_header Access-control-allow-origin *;
}
}

Create a folder to which the profile points

Create a new IMG folder in the C:\ftpfile directory and put in a picture renb.jpg

Adding a native host

127.0.0.1 image.renb.com

Verifying the configuration file

CMD into Nginx directory
Nginx.exe-t
(If there is an error, re-loading is required after correction)
Nginx.exe-s Reload

Restart Nginx, verify access to the picture (if restart failed, restart the computer)

http://image.renb.com/
Http://image.renb.com/renb.jpg

Java EE Enterprise Architecture build for WINDOWS10

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.