简体   繁体   English

每次打开Jenkins时都需要命令提示符吗?

[英]Do I need command prompt every time to open Jenkins?

I have installed Jenkins through jenkins.war file. 我已经通过jenkins.war文件安装了Jenkins。 Every time it depends upon command prompt to start Jenkins on web page. 每次都依赖于命令提示符在网页上启动Jenkins。 After running java -jar jenkins.war I can open Jenkins. 运行java -jar jenkins.war之后,我可以打开Jenkins。 If I am closing command prompt and refreshing the http://localhost:8080/ then it shows error "localhost refused to connect". 如果我关闭命令提示符并刷新http://localhost:8080/则显示错误“ localhost拒绝连接”。 Is there any permanent solution? 有什么永久解决方案吗?

Jenkins is being deployed as a .war file .This would mean it is being run as a webapp with tomcat( port 8080). Jenkins将作为.war文件进行部署。这意味着它将作为具有tomcat(端口8080)的Web应用程序运行。 Tomcat either needs to be run from cmd or as a service. Tomcat需要从cmd运行或作为服务运行。 If you want to make it easier, add it as a service and enable it to be run at startup. 如果您想使其变得更简单, 请将其添加为服务使其能够在启动时运行。

You can deploy your war file to a appliation server like tomcat, jboss etc or you can install jenkins as a service. 您可以将war文件部署到tomcat,jboss等应用服务器,也可以将jenkins作为服务安装。

Here is the official documentation to install jenkins in any OS 是在任何操作系统上安装jenkins的官方文档

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 每次更改资源时都需要重新启动服务器吗? - do I need to restart the server every time i change a resource? 每次都需要循环添加新的ArrayList吗? - Do I need to new ArrayList in loop every time? 我需要知道为什么每次我输入Z = input.nextInt(); 在第二次提示后,它不起作用 - i need to know why every time i put Z=input.nextInt(); after the second prompt it doesn't work 如何调用永久命令提示符? - How do I call a permanent command prompt? 我需要在Jenkins中运行什么Windows批处理命令来启动脚本? - What Windows batch command do I need to run in Jenkins to launch a script? 为什么我们不需要在wlst命令提示符下输入用户名和密码? - Why do we not need to enter username and password in wlst command prompt? 使用Java时如何保持命令提示符处于打开状态? - How do you keep the command prompt open when using Java? 何时需要使用命令提示符设置 -cp 或 -classpath。 请注意,我对设置环境变量不感兴趣 - When Do I need to set -cp or -classpath using command prompt. Please note that I am not interested in setting environment variable 套接字编程的最佳做法是什么 - 我每次都要关闭它还是让它保持打开状态? - What is the best practice on socket programming — do I do a close every time or leave it open? 每次扩展类并需要其构造函数来触发时,都必须调用super吗? - Do I have to call super every time I extend a class and need its constructor to trigger?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM