how to change port number for Jenkins installation In Ubuntu 12.04

前端 未结 5 1530
星月不相逢
星月不相逢 2021-02-02 07:52

I am trying to install jenkins in ubuntu. I have followed the commands below:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -

e         


        
5条回答
  •  借酒劲吻你
    2021-02-02 08:13

    1. First, run this command to open jenkins configurations:

       sudo nano /etc/default/jenkins
      
    2. The only part you need to change is:

       #port for HTTP connector (default 8080; disable with -1)
       Http_port = 8080
      

      There you need to change to the desired port. For example:

       HTTP_PORT = 8081
      
    3. Finally, Restart Jenkins service by running this command:

       sudo service jenkins restart
      

    Then you're ready to open it with a new port.

提交回复
热议问题