标签:下载 hat red sys bash -- star 重启 meta
直接下载 rpm 安装
各个版本地址 https://pkg.jenkins.io/
wget https://pkg.jenkins.io/redhat/jenkins-2.156-1.1.noarch.rpm
rpm -ivh jenkins-2.156-1.1.noarch.rpm
vim /etc/sysconfig/jenkins
#监听端口
JENKINS_PORT="8080"
systemctl start jenkins
错误信息为Starting Jenkins bash: /usr/bin/java: No such file or directory
是java环境配置的问题。
找到你的jdk目录,我是在 usr/local/java/jdk1.8.0_171/
下,创建软链接即可:
ln -s /usr/local/java/jdk1.8.0_171/bin/java /usr/bin/java
然后重新启动
1. /usr/local/nginx/conf/nginx.conf 配置增加如下
systemctl reload jenkins.service
systemctl stop nginx.service
systemctl start nginx.service
标签:下载 hat red sys bash -- star 重启 meta
原文地址:https://www.cnblogs.com/zhukaijie/p/12376558.html