📄 installation.htm
字号:
<html>
<head>
<title>jwp - JSP WebProject</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/jwp.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="90%" border="0" align="center">
<tr>
<td rowspan="24" width="150" valign="top"><img src="images/connect_to_network.png" width="128" height="128"></td>
<td class="text_bold"> jwp - JSP WebProject Installation Instruction</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">
<p>You can use this installation instruction for Linux/Unix and Windows.</p>
</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">1. Requirements:</td>
</tr>
<tr>
<td class="text_bold"> </td>
</tr>
<tr>
<td class="text">You will need to install the following software before installing
jwp (please ensure to download the correct packages for your system):</td>
</tr>
<tr>
<td class="text">
<table width="95%" border="0" align="right">
<tr>
<td class="text_bold"> </td>
</tr>
<tr>
<td class="text_bold">Apache Tomcat</td>
</tr>
<tr>
<td class="text">please download and install the Apache Tomcat Servlet
Container</td>
</tr>
<tr>
<td class="text">it can be found at the Apache Homepage: <a href="http://jakarta.apache.org" target="_blank" class="text">http://jakarta.apache.org</a></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">MySQL RDBMS</td>
</tr>
<tr>
<td class="text">You need the MySQL Database on your System</td>
</tr>
<tr>
<td class="text"><a href="http://www.mysql.com" target="_blank" class="text">http://www.mysql.com</a></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">JWP Package</td>
</tr>
<tr>
<td class="text">you can download the current release here...</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">2. Installation</td>
</tr>
<tr>
<td class="text">I will only describe the installation of jwp. If you have
problems installing Apache Tomcat or MySQL please refer to their FAQ or
Manuals. </td>
</tr>
<tr>
<td class="text">If you have trouble installing jwp, please send me an <a href="mailto:jade-mail@gmx.de" class="text">eMail</a>,
I will try to help you as soon as possible.</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">
<p>In this example I use the following folders to install jwp:</p>
</td>
</tr>
<tr>
<td class="text">Apache<span class="text_bold"> Tomcat under Windows:</span>
<span class="textitalic">C:\Tomcat</span></td>
</tr>
<tr>
<td class="text">Apache<span class="text_bold"> Tomcat under Linux:</span>
<span class="textitalic">/opt/tomcat</span></td>
</tr>
<tr>
<td class="text"><span class="text_bold">JWP</span> Directory <span class="text_bold">under
Windows:</span> <span class="textitalic">C:\webapps\jwp</span></td>
</tr>
<tr>
<td class="text"><span class="text_bold">JWP</span> Directory <span class="text_bold">under
Linux:</span> <span class="textitalic">/opt/webapps/jwp</span></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">Please replace the example directories above with your current
directories. </td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">
<table width="95%" border="0" align="right">
<tr>
<td class="text"><span class="text_bold">2.1. Unzip the jwp Package
into your preferred folder</span></td>
</tr>
<tr>
<td class="text">Please check that your tomcat process has enough rights
to access the folder of your jwp.</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">2.2. Go to your Tomcat Config
Directory and edit the <i>server.xml</i> file:</span></td>
</tr>
<tr>
<td class="text">You will find the server.xml here (<span class="text_bold">Linux</span>):
<span class="textitalic">/opt/tomcat/conf</span></td>
</tr>
<tr>
<td class="text"><span class="text_bold">Windows:</span> <span class="textitalic">C:\Tomcat\conf</span></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">Search for the following lines:</td>
</tr>
<tr>
<td class="textitalic"><font color="#3366CC" class="textmarker"><!--
Tomcat Root Context --><br>
<!--<br>
<Context path="" docBase="ROOT" debug="0"/><br>
--></font></td>
</tr>
<tr>
<td class="text">After these lines you can add a new "Context"
which specifies the location of your jwp:</td>
</tr>
<tr>
<td class="text">For my <span class="text_bold">Windows</span> installation:</td>
</tr>
<tr>
<td class="text"><font color="#3366CC" class="textmarker"><Context
path="/jwp" docBase="C:\webapps\jwp" debug="0"/></font></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">For my <span class="text_bold">Linux</span> installation:</td>
</tr>
<tr>
<td class="text"><font color="#3366CC" class="textmarker"><Context
path="/jwp" docBase="/opt/webapps/jwp" debug="0"/></font></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">Save your server.xml</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">2.3. Create the needed Database
</span></td>
</tr>
<tr>
<td class="text">In your jwp folder you will find the "docs"
directory. </td>
</tr>
<tr>
<td class="text">There you will find the file "<span class="textitalic">database.sql</span>".
Use this statements to create the database.</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">2.4. edit the jwp web.xml </span></td>
</tr>
<tr>
<td class="text">In the WEB-INF directory of your jwp package you will
find a file called web.xml</td>
</tr>
<tr>
<td class="text">Search for the following lines:</td>
</tr>
<tr>
<td class="textmarker"> <!-- Environment Variables --><br>
<!-- Please configure your database variables here --> </td>
</tr>
<tr>
<td class="text">These lines are followed by the configuration lines
of jwp:</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">2.4.1 Edit the database host
variable.</span> This is the IP where your MySQL Server is installed.</td>
</tr>
<tr>
<td class="text">Here you have to replace localhost whith your setting.
If jwp is running on the same machine as your MySQL Database Server
you can use "localhost" or "127.0.0.1"</td>
</tr>
<tr>
<td class="textmarker"><env-entry><br>
<env-entry-name>db_host</env-entry-name><br>
<!-- enter your host --><br>
<env-entry-value><span class="text_bold">localhost</span></env-entry-value><br>
<env-entry-type>java.lang.String</env-entry-type><br>
</env-entry></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">2.4.2. Edit the database port</span>
on which your MySQL Server listens</td>
</tr>
<tr>
<td class="text">Normally 3306 is the standard port, so you need not
to change it.</td>
</tr>
<tr>
<td class="textmarker"> <env-entry><br>
<env-entry-name>db_port</env-entry-name><br>
<!-- enter your port --><br>
<env-entry-value><span class="text_bold">3306</span></env-entry-value><br>
<env-entry-type>java.lang.String</env-entry-type><br>
</env-entry></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">2.4.3. Edit the Database name</td>
</tr>
<tr>
<td class="text">Replace "jwpdb" with the database name you
have chosen when creating your jwp database</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="textmarker"> <env-entry><br>
<env-entry-name>db_database</env-entry-name><br>
<!-- enter your database name --><br>
<env-entry-value><span class="text_bold">jwpdb</span></env-entry-value><br>
<env-entry-type>java.lang.String</env-entry-type><br>
</env-entry></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">2.4.4. Configure the correct
User</span> who has the rights to access the database</td>
</tr>
<tr>
<td class="text">Replace "dbuser" by your database user</td>
</tr>
<tr>
<td class="textmarker"> </td>
</tr>
<tr>
<td class="textmarker"> <env-entry><br>
<env-entry-name>db_user</env-entry-name><br>
<!-- enter your database user --><br>
<env-entry-value><span class="text_bold">dbuser</span></env-entry-value><br>
<env-entry-type>java.lang.String</env-entry-type><br>
</env-entry></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">2.4.5. Configure the password of the User</td>
</tr>
<tr>
<td class="text">Replace "userpass" by the correct password
of the database user</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="textmarker"> <env-entry><br>
<env-entry-name>db_password</env-entry-name><br>
<!-- enter the password of the database user --><br>
<env-entry-value><span class="text_bold">userpass</span></env-entry-value><br>
<env-entry-type>java.lang.String</env-entry-type><br>
</env-entry></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">2.5. Start your MySQL Database and your Apache
Tomcat.</td>
</tr>
<tr>
<td class="text">Now you can access your jwp using the webbrowser:</td>
</tr>
<tr>
<td class="textitalic">http://ip_of_your_webserver:8080/jwp/admin</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text">Replace "<span class="textitalic">ip_of_your_webserver</span>"
by the IP of the workstation or server where your Tomcat is installed</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">2.6 Login with Admin Account</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><img src="images/screenshots/thumb_login.jpg" width="300" height="213"></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text"><span class="text_bold">User:</span> <span class="textitalic">admin</span></td>
</tr>
<tr>
<td class="text"><span class="text_bold">Login: </span><span class="textitalic">admin</span></td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td class="text_bold">2.7. Change the Admin User to your Name</td>
</tr>
<tr>
<td class="text">Go to the User Administration and edit the Admin User.</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="text"> </td>
</tr>
<tr>
<td><img src="images/sourceforge.bmp"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -