问题描述
运行 hudson 很容易,但是当前文档缺少将运行的hudson作为守护程序安装的教程. /OS上的/service.
Running hudson it is easy but currently the documentation is missing the tutorial for installing an running hudson as a daemon/service on OS X.
切换到生产环境时,需要确保已正确配置和保护它.
When you switch to production you need to assure that it is properly configured and secured.
要求:
- 能够在端口80上运行
- 不是以root身份运行(或者至少不是以root身份运行作业)
- 确保它在系统重新启动时能正确启动/停止
- 启用自动升级,直接在Web界面上工作.
最好是安装一个可下载最新的hudson并进行安装的安装脚本.
The best, would be to have an installation script that downloads latest hudson and installs it.
我们将为Hudson Wiki集成最佳答案.
We'll integrate the best answer to Hudson wiki.
资源:
- http://wiki.hudson-ci.org/display/HUDSON/Meet + Hudson
- http://wiki.hudson-ci.org/display/HUDSON/自动化+升级
- http://jrenard.info/blog/a-quick-but-working-startup-item-for-hudson-for-mac-os-x.html
- http://wiki.hudson- ci.org/display/HUDSON/Installing+Hudson+as+a+Unix+daemon
- http://weblogs. java.net/blog/2009/02/10/hudson-now-good-behaving-unix-daemon
- http://wiki.hudson-ci.org/display/HUDSON/Meet+Hudson
- http://wiki.hudson-ci.org/display/HUDSON/Automated+Upgrade
- http://jrenard.info/blog/a-quick-but-working-startup-item-for-hudson-for-mac-os-x.html
- http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson+as+a+Unix+daemon
- http://weblogs.java.net/blog/2009/02/10/hudson-now-good-behaving-unix-daemon
推荐答案
正确的解决方案是将hudson安装在tomcat中并使tomcat作为守护程序运行
The correct solution is to install hudson inside tomcat and make tomcat run as daemon
这还将满足安全性要求,并让您轻松升级hudson.
This will also meet the security requirements and allow you to upgrade hudson with ease.
以下是OS X 10.6的完整指南: https://serverfault.com/questions/183496/完整指南安装在OS X上的tomcat/183527#183527
Here is the full guide for OS X 10.6:https://serverfault.com/questions/183496/full-guide-for-installing-tomcat-on-os-x/183527#183527
这篇关于如何在OS X上将Hudson作为服务安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!