Jenkins修改端口
半笙彷徨 2017-06-01 18:02:48 822 收藏
展开
通过rpm文件安装Jenkins,将Jenkins注册为服务,可通过以下方式修改Jenkins的端口,默认为8080
1.查看配置文件:
[root@zk01 jenkins]# rpm -ql jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins
1
2
3
4
5
6
7
8
9
10
2.修改/etc/sysconfig/jenkins文件,找到JENKINS_PORT修改保存即可。
## Type: integer(0:65535)
## Default: 8080
## ServiceRestart: jenkins
#
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT="8080"
1
2
3
4
5
6
7
8
9
————————————————
版权声明:本文为CSDN博主「半笙彷徨」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wang704987562/article/details/72833852