ubuntu设置jenkins开机自动启动
来源:互联网 发布:鸡兔同笼c语言编程答案 编辑:程序博客网 时间:2024/04/29 14:21
本来我没有找到类似于gerrit的启动脚本
但是万能的google告诉了我,人家官网上提供了……
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Unix+daemon
以及
https://wiki.jenkins-ci.org/display/JENKINS/JenkinsLinuxStartupScript我觉得可以参考下面这种方法:
Java Service Wrapper
The The Java Service wrapper is a wrapper that works both on Unix and Windows. It requires some set up but when it is setup it can be used as any other unix service (like start/stop).
This example will install a Jenkins instance in /home/jenkins on a debian machine. The Jenkins configuration is stored in /home/jenkins/data. Jenkins will be running on port 8070 and as the jenkins user.
- Select and download a JSW package from the JSW wrapper download page.
- Unpack the package into the /home/jenkins path.
- Create /home/jenkins/tmp as the temporary directory for JSW.
- Download the jenkins.war file into /home/jenkins/lib.
- If you have plugins that you would like to use, download them into /home/jenkins/data/plugins.
- Copy the /home/jenkins/src/conf/wrapper.conf.in to /home/jenkins/conf/wrapper.conf and change the below configuration properties in the file.
- Verify the wrapper configuration by starting Jenkins through /home/jenkins/bin/testwrapper console. Jenkins should be accessible through http://localhost:8070, if not check the console output for errors.
- Copy the /home/jenkins/src/bin/sh.script.in to /etc/init.d/jenkins and change the below configuration properties in the file.
- Verify installation by starting the daemon through /etc/init.d/jenkins start. Make sure that /etc/init.d/jenkins has the correct permissions; normally 755 is ok for this.
照着上面的改的,RUN_AS_USER我就用的自己的用户
然后系统启动起来之后jenkins的服务启动的较慢,可能要等一分钟。
不过,自动启动是验证过了OK了,可以用了
0 0
- ubuntu设置jenkins开机自动启动
- ubuntu中设置synergy自动开机启动
- ubuntu设置gerrit开机自动启动
- ubuntu开机自动启动程序设置
- ubuntu设置开机自动启动脚本
- Ubuntu 开机自动启动
- ubuntu 开机自动启动
- ubuntu开机自动启动
- 设置开机自动启动
- ubuntu 设置开机启动
- Ubuntu 10.04LTS 设置开机/登录自动启动应用程序
- ubuntu安装vnc server-x11vnc并设置开机自动启动
- ubuntu安装vnc server-x11vnc并设置开机自动启动
- Tomcat ubuntu 开机自动启动
- ubuntu tomcat开机自动启动
- ubuntu tomcat开机自动启动
- android 设置开机自动启动
- oracle开机自动启动设置
- struts-config.xml配置详解
- 利用金山毒霸开启免费wife共享
- iOS的系统架构
- SELECT INTO 和 INSERT INTO SELECT 两种表复制语句
- 设计模式14——行为型模式之职责链模式
- ubuntu设置jenkins开机自动启动
- 网站优化均衡技巧:建设平稳的网站数据
- 导致电脑网速变慢的几个方面
- Xcode 证书生成、设置、应用。
- (ssh) junit 模拟多线程测试servcie 方法
- CFLAGS was changed 错误 LDD3
- poi导出Excel
- [教程]如何使用V7包中ActionBar(Eclipse版)
- Python直接访问Postgresql,实践通过