部署在阿里云 centos
机器上的 jenkins
意外挂掉了,记录一下解决办法。
更新
[2021-12-27]
问题描述
部署在阿里云 centos
机器上的 jenkins
意外挂掉了,记录一下解决办法。
解决办法
- 重启 jenkins
1 2 3 4 5 6 7 8
| cd /opt/work_tools/jenkins
java -jar ./jenkins.war --httpPort=8088
nohup java -jar jenkins.war --httpPort=8088 &
|
- 修改 nginx 配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name jenkins.config.yyge.top; root /usr/share/nginx/html;
ssl_certificate "/etc/nginx/cert/20210312/5308292_www.jenkins.config.yyge.top.pem"; ssl_certificate_key "/etc/nginx/cert/20210312/5308292_www.jenkins.config.yyge.top.key"; ssl_session_cache shared:SSL:1m; ssl_session_timeout 10m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on;
include /etc/nginx/default.d/*.conf;
fastcgi_intercept_errors on;
client_max_body_size 1000m;
location / { proxy_pass http://127.0.0.1:8088; }
error_page 404 /index.html; location = /index.html { root /study/frontend/practise/githubGoods/public/ddzy.github.io; } error_page 500 502 503 504 /50x.html; location = /50x.html { } }
|