[root@varunHome]# sudo service jenkins statusjenkins (pid 7468) is running...
[root@varunHome]# sudo service jenkins stopShutting down Jenkins [ OK ]
[root@varunHome]# sudo service jenkins startStarting Jenkins [ OK ]
[root@varunHome]# sudo service jenkins restartShutting down Jenkins [ OK ]
Starting Jenkins [ OK ][root@varunHome]#
使用窗户的人
打开控制台/命令行-->转到Jenkins安装目录。分别执行以下命令:
To stop:jenkins.exe stop
To start:jenkins.exe start
To restart:jenkins.exe restart