java - tomcat可以脱离myeclipse独立运行项目吗?
PHP中文网
PHP中文网 2017-04-18 10:15:58
0
18
894

启动项目总是要在myeclipse中用tomcat启动,能不用myeclipse直接用tomcat或者别的服务器启动项目吗?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(18)
Ty80

Tell me the simplest example. Do you think eclipse must be installed on every server?

左手右手慢动作

This must be possible.

小葫芦

These software are integrated with tomcat. In the production environment, tomcat exists separately on the server and is operated through shell commands.

伊谢尔伦

myeclipse is just an IDE.

Ty80

The default port number is 8080. Generally, when we develop and test, we enter http://localhost:8080/project name?parameter name=parameter value in the browser address bar to access the project.

黄舟

Yes. It is recommended to use maven or gradle to avoid too many problems.

伊谢尔伦

Of course.

迷茫

Of course, you can package the project into war format and run it in the webapps directory of tomcat

小葫芦

Of course, tomcat is a server, and myeclipse is an IDE, used to write java projects. You need to format the project into a jar package or war package and run it under tomcat.

Ty80

Problem analysis:
Raising this question shows that the questioner has a unclear understanding of the concepts of tomcat and myeclipse. In response to this, the correct answer is not of course yes...or yes, etc. The key is to clarify the conceptual relationship.

Answer:

  • tomcat is the same as web服务器,同样概念的还有weblogic(常用于java),apache(常用于php)、iis (commonly used in .net), they are both running environments for web programs.

  • myeclipse is 集成开发环境(ide),同样概念的还有intellJ ideavisual studio,php stormetc. The meaning of integration is that in addition to allowing you to edit code conveniently, it also integrates a variety of other tools, such as maven plug-ins, git version management, tomcat and other web servers, allowing you to develop and debug It is more convenient to get up.

  • When you click the debug or run button in myeclipse, myeclipse actually just runs the startup.bat (startup.sh under Linux) command of tomcat (or other web server), so the web program must be in the web server to run, and the web server is independent (especially independent from the IDE).

Another

  • If tomcat must run under myeclipse, then all servers running tomcat must have myeclipse installed?

  • tomcat directory structure

  • tomcat deploys java project

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!