JSP_ OPS _jsp Project deployed to server (for 0 novice experience)

Source: Internet
Author: User
Tags apache tomcat

Combat: Real server-side deployment JSP project experience summary and record (complete process from 0 to 10 suitable for server-side deployment 0 Novice experience)

Jsp+tomcat+mysql Project deployment to True server; Servermysql installation; SERVERJDK installation; Servertomcat installation; Serversql file management; serverjsp project and Servermysql connection;

The tutorial about binding the project to the domain name has been updated. Url

  • The first step is to install JDK,JDK that should be installed first in all the software that needs to be installed.

    The JDK details how to install this article

    我截取了能够參考的部分1. 装JDK ,我从本地右键复制一个jdk,然后到远程桌面的C盘以下,鼠标右键粘贴(我是直接在server端用浏览器下载的,要保证版本号与你本地开发环境所使用版本号号同样。假设不同,但本地实验过不会出bug。那也能够)安装就可以,选项一般选默认就可以2. 配置一下JAVA_HOME--》系统高级设置->环境变量->系统变量新建->变量名JAVA_HOME->变量值jdk文件夹且最后不带分号
  • The second step is to configure Tomcat, the general official website download is a zip package, extracted to the C drive can be. In the Tomcat Bin folder, double-click Startup.bat to start the Tomcat service. Enter http://localhost:8080/ in the browser the first page of Tomcat indicates that Tomcat has started successfully. But very often, Tomcat is required to boot on its own initiative.

    The following is an introduction to how to boot yourself on the win server Setup.

    Create a new system environment variable: catalina_home, the value is your Tomcat folder, finally open path, add the variable value:%catalina_home%\bin, and then open cmd. Drag the Service.bat in the Bin folder of the Tomcat folder into the small black box. Enter, if

    is displayed to show that everything is OK to proceed to the next step. Assuming this is not the case, the path to installing Tomcat is wrong or the environment variable is wrong. Please check.

    After the cmd form, type service.bat install Tomcat or service.bat install to complete the output and press ENTER. Occurrences such as the following similar form. was successful.

    Last services->apache tomcat-> right-click, select Start, and in the properties change the startup type to "self active"

    Watermark/2/text /ahr0cdovl2jsb2cuy3nkbi5uzxqvu19nev9azxryb3y=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /southeast "alt=" where to select Start. PNG "title=",

    And then copy the project folder in your local Tomcat WebApp into the webapp of the Tomcat folder under the Remote Desktop in the C drive.

  • The third step is to install MySQL. For my previous blog, suppose that the net start mysql path to cmd in the System32 folder does not start properly. Try the CD command to cut back to the Bin folder and try again, walk a few more times on the pass.

    As for importing SQL files. You need to export from a local MySQL management tool (such as Navicat) and then save it to the server and then use the MySQL management tool on the server (such as the navicat,server-side MySQL management tool to install itself, do not repeat here) import can

    导入方法我简要描写叙述一下(以管理工具为navicat为例)1. 先依照我上面给的博客在mysql中配置连接。然后在navicat中建立连接。

    连接名任意。我取名为localhost_3306,password一栏取刚改的password。这个时候不要着急点确定,点击“连接測试”,人品好的都不会报错。然后关闭对话框,在左側导航栏双击已经建立的localhost_3306连接名能够看到他变绿了2. 这时右键点击这个绿名字选择新建数据库,数据库名称与你jsp项目中jdbc中传进去的数据库字符串名字同样,字符集因人而异,我选了GBK。点击确定3. 然后双击新建好的数据库使它变绿,接下来找到已经传到远程桌面中的.sql文件。拖到这个数据库里面。弹出的对话框中一般不改什么,就改一下编码,与之前的编码一样,如我的是GBK。

    4. 完毕后关闭,数据库右键选择刷新。sql文件应已成功导入“表”中5. 至此数据库导入结束

    Now the server-side browser input http://localhost:8080/xxx assumes that you can open your project normally. You should also be able to access the deployed sites in the server from this computer. If the interview is not the Servertomcat has not yet started.

Problems encountered and how to solve them
  • The server-side Navicat connection database is assumed to have changed password according to my blog. Will error 1862.

    Solve the method using mysql -h localhost -u root -p login into MySQL after typing SET PASSWORD = PASSWORD(‘root‘); , change password to root, this time navicat password to root to be able to log in, assuming that their own JSP project password string is not the same. Repeat this step and then change the password to what you want, and the same password as the database files in the project. is now able to connect normally, just a small bug need not panic.

  • The server-side browser is able to access localhost:8080/... the network can not be ip:8080 asked to solve: add Tcp8080port

    In the system Firewall inbound rule, click on the join Port-> rule applies to tcp-> specify the local port to 8080-> next, next to the port definition name: Web, descriptive narrative is 8080.

  • How the server turns on ping

    Windows Firewall, advanced settings, inbound Rules, find "File and Printer Sharing (Echo request-icmpv4-in)" In the list, right-click to select the Enable rule, and in its properties set as ' consent to connect ', OK Yes. To disable ping, remove the tick.

  • Visit when you find that the HTML format parsing is not correct need to change the source code

    Encountered a small HTML problem, the kind of things to reduce the content of something. Can directly in the server Remote Desktop inside the Tomcat folder WebApp project files in the source code with Notepad changes, after the change to double-click Tomcat Start.dat. The Tomcat black box that has been executed does not have to be closed

    Spit Groove: This kind of thing should be considered well in local development, for example, I encountered a different browser last night to visit the server site HTML font parsing is different, such an episode in the local development should be thought, and resolved.

============================= unrelated to the topic ===========================================

The site was officially launched 9:50 last night.

Remember it ~ ~

[Pretending another server's desktop]– is not a no-no, it's just that I don't want to put it here.

Development period: 40 days
Core development: 21 days
Subjective time input: 200h
Late system operation: 6 months
Title: System administrator (self-styled)
===================================================================================

References Resources
Entry1-tomcat:http://jingyan.baidu.com/article/a65957f4b12b8724e77f9b5a.html
If Entry1 error is->entry2:http://blog.csdn.net/ruanqiangqiang/article/details/7414905
Entry2 Verification: http://www.cnblogs.com/qisel/p/3915262.html
Entry2 Verification: http://www.jb51.net/article/87456.htm
entry3-mysql:http://blog.csdn.net/s_gy_zetrov/article/details/55669018
entry4-mysql:error1862 https://segmentfault.com/q/1010000008150194
Entry5-8080:http://jingyan.baidu.com/article/ed15cb1b0e520a1be369810c.html
Entry6-ping:www.jb51.net/article/89163.htm

Finally, a little bit of broken up.

Generally like the kind of things I dare not imagine now, I will have to know people everywhere to show off to blow their own very strong that idea. But I always do not like to show off, even to show off, even the general record of life will not be widely told.

See my friends circle, I know, I very few friends circle. I belong to such a point to do seven points left two points in a daze of the kind. The corresponding slang "say three points to do seven points." My original evaluation is to say one point to do six points left three points in a daze. Now that you've finally done something, add a point to yourself. Although I now have a strong urge to tell all my friends about it, my philosophy of life forbids me to do so at most. Also just to mention in the blog, after all, look at my blog is mostly strangers. So, although there are a few more words here, but I will deal with this paragraph, unless carefully found, otherwise it is not visible.

If you are watching this now and you know who I am, please don't advertise for me. The second thing I hate is that people say what I don't want to say and let others know. As for the first nuisance, here I don't say.

JSP_ OPS _jsp Project deployed to server (for 0 novice experience)

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.