How to modify the default 8080 port of Jenkins

1. vim  /etc/init.d/jenkins, modify the check_tcp_port command of the do_start function, and change the port number from 8080 to 8081.

2.  In the vim /etc/default/jenkins file, change the port 8080 to 8081.

3. service jenkin restart

4. ps -def | grep java

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326117121&siteId=291194637