HT system deployment operation documentation, ht deployment documentation

Source: Internet
Author: User

HT system deployment operation documentation, ht deployment documentation
Before installation, note that Tomcat and Mysql only have a level-1 directory. 1. Install jdk.

Baidu searches for "jdk download.

Jdk-8u51-windows-i586_V8.0.510.16.1436943767.exe

Install jdk on disk D,

It mainly sets environment variables:

User variable:

JAVA_HOME: D: \ JDK

System variables:

CLASSPATH: % JAVA_HOME % \ lib \ tools. jar;

JAVA_HOME: D: \ JDK

Path: D: \ JDK \ bin

2. Install the green version of Tomcat 8

Apache-tomcat-8.0.3_0709.zip

Only the first-level directory is set.

2.1 ------ added the serveletAPI. jar package

That is to add Tomcat lib directory under the servlet-api.jar

The command in cmd is:

Set classpath = % classpath %;

Then drag the servlet-api.jar into cmd,

Note that these two commands are separated by semicolons. Press enter once.

2.2 ---- CATALINA_HOME

----- CATALINA_BASE

----- TOMCAT_HOME

Set these three variable values to the previous directory of the bin directory, that is

D: \ ApacheTomcat6

Path: % CATALINA_HOME % \ bin \;

All four variables are set in user variables.

2.3 ----- execute startup. bat under the bin directory to start tomcat8.

If you enter http: // localhost: 8080 in the browser

If the tomcat8 homepage is displayed, the configuration is successful.

3. Install the green version of Mysql:

Mysql-5.6.17-winx64.zip

The installation package only has a level-1 directory, such as D:/mysql/(various files)

First rename the my-default.ini file to my. ini, then configure my. ini,

Copy the following content to the end of my. ini,

***************************

[Client]

Default-character-set = utf8

[Mysqld]

# Set mysql Server Encoding

Character_set_server = utf8

# Basedir sets the mysql installation directory. If the directory contains spaces, quotation marks are required.

# Datadir sets the data storage directory of the mysql database. The folder name must be data

Basedir = D: \ mysql

Datadir = D: \ mysql \ data

Port = 3306

***************************

# Note that the port is not occupied

Put the configuration file my. ini in the mysql installation directory, that is, under D: \ mysql,

Enter: D: \ mysql \ bin

Mysqld -- install mysql3 -- defaults-file = D: \ mysql \ my. ini

Mysql3 is the service name. You can name it and Install multiple services, but different ports are used.

If service successfully installed is displayed, the installation is successful.

Net start mysql3

Start mysql.

Create a database db2 under test1 connection, set utf8 -- UTF-8 Unicode, and set the sorting rule utf8_general_ci.

In connection to test1, create user haitian_2, host %, password 666666, and select all server permissions.

Import SQL _backup in 0713.

======================================

4. Modify conf/server. xml

Change <Connector port = "8080" protocal = "HTTP/1.1" connectionTimeout = "20000" redirectPort = "8443"/> to "80 ".

Do you need to add the JRE_HOME environment variable.

JRE_HOME:/jre;

Net is not an internal command:

Add the Path to the Path in the system variable:

% SystemRoot % \ system32

 

Set the empty mysql database password to the new password 666666:

Reference: http://www.cnblogs.com/hooray/archive/2011/07/23/2114792.html

1. Add skip-grant-tables to the [mysqld] field of my. ini.

Restart the mysql service,

2.double-click "mysql.exe" in the bindirectory,

Enter use mysql,

Enter update userset password = PASSWORD ('000000') where user = 'root ';

Enter flush privileges;

Remove skip-grant-tables from my. ini.

Restart the service. Pay attention to the semicolon in the SQL statement.

 

Modify the system IP Address:

1. Modify mobile/js/app. js,

Change all 120.25.241.115 to 120.25.241.116.

2. Modify config. properties,

Change 120.25.241.115 to 120.25.241.116.

3. Finally, change 120.25.241.115 to 120.25.241.116.



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.