[英]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.
如果您想使其变得更简单, 请将其添加为服务并使其能够在启动时运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.