Running Jenkins on port 80
Hi All I have an install of Jenkins on an Ubuntu VM. I want it to run on port 80 rather port 8080 as I want to run a development Tomcat on port 8080. Goolging suggests the only way to do this is to use Apache to redirect from 80 to 8080, but that still leaves Jenkins running on 8080 which doesn't fix my problem. Has anyone solved this? -- Thanks Paul Paul Grenyer e: paul.grenyer@gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer
On Sun, Dec 18, 2011 at 08:41:16AM +0000, Paul Grenyer wrote:
Has anyone solved this?
I have no idea what Jenkins is (I had a look as I've not heard of it) but I'm guessing that it's this: https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins On that page it gives one of the startup command line options as --httpPort so I'd suggest you try adding --httpPort=80 to the startup command line and see what happens. Adam -- New signature required, suggestions on a post card please.
Hi Adam
I have no idea what Jenkins is (I had a look as I've not heard of it) but I'm guessing that it's this:
https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins
On that page it gives one of the startup command line options as --httpPort so I'd suggest you try adding --httpPort=80 to the startup command line and see what happens.
Thanks! I found where I think the Jenkins command line is: /etc/init.d/jenkins but adding httpPort and restarting just kills Jenkins. I realise you're not familiar with Jenkins, so this is just an update really. I need to track down the logs too. -- Thanks Paul Paul Grenyer e: paul.grenyer@gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer
Paul Grenyer <paul.grenyer@gmail.com>
Hi Adam
https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins
On that page it gives one of the startup command line options as --httpPort so I'd suggest you try adding --httpPort=80 to the startup command line and see what happens.
80 probably won't work because one needs to be root to get any port under 1024 and jenkins will probably drop root privs fairly quickly, or the init script will use a tool like sudo or daemon to drop them before starting jenkins proper. Try 8000?
Thanks! I found where I think the Jenkins command line is: /etc/init.d/jenkins
That might read from /etc/default/jenkins or similar which might have conflicting options causing:
but adding httpPort and restarting just kills Jenkins. I realise you're not familiar with Jenkins, so this is just an update really. I need to track down the logs too.
Not /var/log/jenkins? Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. Webmaster, Debian Developer, Past Koha RM, statistician, former lecturer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire for various work http://www.software.coop/products/
Hi
80 probably won't work because one needs to be root to get any port under 1024
Yeah, I'd read that in a few places and was hoping it was wrong. ;-)
and jenkins will probably drop root privs fairly quickly, or the init script will use a tool like sudo or daemon to drop them before starting jenkins proper. Try 8000?
I'd tried 8081 and that didn't work either. However....
Thanks! I found where I think the Jenkins command line is: /etc/init.d/jenkins
That might read from /etc/default/jenkins or similar which might have conflicting options causing:
Yes! That's where I needed to change the port. I now have Jenkins running on 8000 which will do nicely for now (as it frees up 8080 for TomCat) and I can do a redirect from Apacahe web server if I need too.
but adding httpPort and restarting just kills Jenkins. I realise you're not familiar with Jenkins, so this is just an update really. I need to track down the logs too.
Not /var/log/jenkins?
That's where i looked after i sent my last reply. Couldn't see anything though. Doesn't matter for the time being.
Hope that helps,
It did! Thanks! I can finally stop banging my head against the wall and do some development work! -- Thanks Paul Paul Grenyer e: paul.grenyer@gmail.com b: paulgrenyer.blogspot.com t: pjgrenyer
participants (3)
-
Adam Bower -
mjr@phonecoop.coop -
Paul Grenyer