HT System Deployment Operations Documentation

Source: Internet
Author: User

Before installing, be aware that Tomcat and MySQL only have one level directory 1. Install the JDK.

Baidu search "JDK download" can.

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

Install the JDK on the D drive,

The main setting is environment variables:

User variables:

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 TOMCAT8

Apache-tomcat-8.0.3_0709.zip

Only one level directory is set.

2.1------Add Serveletapi.jar Pack

That adds Tomcat to the Lib directory under Servlet-api.jar

The cmd command is:

Set classpath=%classpath%;

Then drag the Servlet-api.jar into CMD,

Notice that the two commands are together, separated by semicolons, and enter once.

2.2----Catalina_home

-----catalina_base

-----tomcat_home

Set these three variable values to the previous directory in the bin directory, which is

D:\ApacheTomcat6

Path:%catalina_home%\bin\;

These 4 variables are set in the user variable.

2.3-----Execute the Bin directory under Startup.bat to start tomcat8.

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

The TOMCAT8 home page appears, which is configured successfully.

3. Install the green version of MySQL:

Mysql-5.6.17-winx64.zip

The installation package only has one level directory, such as d:/mysql/(various files)

Rename the My-default.ini file to My.ini First, then configure My.ini,

Copy the following to My.ini Finally,

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

[Client]

Default-character-set=utf8

[Mysqld]

# set MySQL server encoding

Character_set_server=utf8

#basedir设置mysql的安装目录, you must enclose the directory with a space

#datadir设置mysql数据库的数据存放目录, the folder name must be data

Basedir=d:\mysql

Datadir=d:\mysql\data

port=3306

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

#注意port端口没有被占用

Put the configuration file My.ini in the MySQL installation directory, that is, D:\ MySQL,

Access: D:\ mysql \ Bin

Mysqld--install Mysql3--defaults-file=d:\mysql\my.ini

Where Mysql3 is the service name, own name, can install multiple services, but use different ports.

If the service successfully installed appears, the installation succeeds.

net start Mysql3

Start MySQL.

Under Test1 Connection, create a new database DB2, character set selection UTF8--UTF-8 Unicode, collation selection utf8_general_ci.

In the connection test1 new user haitian_2, host%, password 666666, the server permissions are all selected.

Import 0713 inside the sql_backup.

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

4. Modify Conf/server.xml

Change <connector port= "8080" protocal= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/> "8080" to "80".

Need to add jre_home environment variables.

Jre_home:/jre;

NET is not an internal command:

In the system variable, path is increased:

%SystemRoot%\System32

Set the MySQL database blank password to the new password 666666:

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

1. In the My.ini [mysqld] field, add Skip-grant-tables

Restart the MySQL service,

2. In the bin directory, double-click Mysql.exe.

Input use MySQL,

Enter Update Userset password=password (' 666666 ') where user= ' root ';

Input flush privileges;

Remove the skip-grant-tables from the My.ini

Restart the service, and note the semicolon in the SQL statement.

To modify the system IP address:

1. Modify the Mobile/js/app.js,

Change all 120.25.241.115 to 120.25.241.116.

2. Modify the Config.properties,

Modify 120.25.241.115 to 120.25.241.116.

3. Finally, change the 120.25.241.115 in the access URL to 120.25.241.116.



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

HT System Deployment Operations Documentation

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.