1.jenkins启动命令
[root@localhost /]#service jenkins start
2.jenkins停止命令
[root@localhost /]#service jenkins stop
3.查询jenkins状态命令
[root@localhost /]#service jenkins status
4.重启jenkins命令
[root@localhost /]#service jenkins restart
Jenkins默认的端口号是8080,修改方法:
(1)cd到jenkins的war包所在的目录
(2)执行命令执行命令:“java -jar jenkins.war --ajp13Port=-1 --httpPort=8081”
(3)启动jenkins服务:“net start jenkins”
(4)停止jenkins服务:“net stop jenkins”