Jenkins service startup / shutdown / restart command, set the port

Jenkins service startup / shutdown / restart command, set the port


 

1, Jenkins service command

# 重启 Jenkins
service jenkins restart

# 启动 Jenkins
service jenkins start

# 停止 Jenkins
service jenkins stop

 

2, see Jenkins process

ps -ef | grip jenkins

 

3. Check the status Jenkins

service jenkins status

 

4, modify the port (Jenkins default port is 8080)

. 1) VI mode edit  / etc / sysconfig / jenkins

vi /etc/sysconfig/jenkins

 

2) find JENKINS_PORT = "8080", the  JENKINS_PORT value to be modified. For example, modified to 8081

 

3) modification, you can restart the service Jenkins

service jenkins restart

 

Guess you like

Origin www.cnblogs.com/miracle-luna/p/12508307.html