惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
C
Check Point Blog
M
MIT News - Artificial intelligence
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
D
Docker
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
H
Help Net Security
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Cloudbric
Cloudbric
Blog — PlanetScale
Blog — PlanetScale
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
N
News | PayPal Newsroom
V2EX - 技术
V2EX - 技术
H
Heimdal Security Blog
S
Security @ Cisco Blogs
V
Visual Studio Blog
The Last Watchdog
The Last Watchdog
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
爱范儿
爱范儿
博客园 - 聂微东
S
Securelist
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Vulnerabilities – Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
Apple Machine Learning Research
Apple Machine Learning Research

Jenkins - 分类 - cywhat's blog

Jenkins添加html报告并发送到邮箱 Jenkins插件无法安装解决 Jenkins报错 Bash:newman:command Not Found Jenkins启动报错原因分析
Jenkins端口修改之后没有生效
cywhat · 2023-04-07 · via Jenkins - 分类 - cywhat's blog

1、问题

jenkins通过systemctl start jenkins.service启动服务,端口不是配置文件里自定义的端口

2、排查

1、系统service配置

1
2
3
4
vim /lib/systemd/system/jenkins.service

# 修改端口号
Environment="JENKINS_PORT=9898"

/img/img73.png

2、etc下的系统配置

1
2
3
4
vim /etc/sysconfig/jenkins

# 修改端口号
JENKINS_PORT="9898"

/img/img74.png

3、通过systemctl status查看启动配置文件的路径

1
systemctl status jenkins.service

/img/img75.png

1
2
3
4
5
注意需要排查上面图片中框选出来的`1`和`2`

1:系统配置文件路径,上面已经更改了没问题

2:该文件是一个重写文件,问题就在这里,需要把里面的端口号也更改为9898
1
vim /etc/systemd/system/jenkins.service.d/override.conf

/img/img76.png

3、解决

1
2
3
4
5
# 重新加载systemctl配置
systemctl daemon-reload

# 重启jenkins
systemctl restart jenkins.service

4、查看jenkins服务

1
netstat -ntlp   #有端口为9898的服务已经在运行了

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏