先出现得先安装Java
问题,才遇到防火墙问题::~$ sudo ufw allow
文献:[SOLVED] UFW BLOCK messages in dmesg - trouble figuring them out
再遇到端口号问题::~$ sudo micro /etc/default/jenkins
修改端口号。
文献:Ubuntu 安装jenkins 出现 Failed to start LSB: Start Jenkins at boot time 问题
🐧 Linux
🍥 Debian
👒 Redhat
🟠 Ubuntu
🏔 ArchLinux
🐉 KaliLinux
目前使用 🟠Ubuntu 20.04LTS,将端口8080
修改为8082
后,更新重启也无效,请前辈指点:
Unfortunately, the upstream debian and redhat packaging use different sysconf values.
HTTP_PORT is used by debian
https://github.com/jenkinsci/packaging/blob/master/deb/build/debian/jenkins.default#L57
JENKINS_PORT is used by redhat
https://github.com/jenkinsci/packaging/blob/master/rpm/build/SOURCES/jenkins.sysconfig.in#L56
There's not much we can do until the upstream packaging is fixed. I would be happy to accept a doc PR.
GitHub来源:How do I change the jenkins listening port? #659
参考文章: