0
我已經在我的ec2實例上使用以下教程在線步驟安裝jenkins。我是linux環境和部署的新手。我的問題是詹金斯儀表板沒有在瀏覽器中顯示在< myIp>:8080/jenkins。有人可以幫我解決這個問題嗎?Jenkins亞馬遜Linux安裝
sudo yum install -y docker nginx git
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
sudo vim /etc/nginx/nginx.conf
Change as below
server {
listen 80;
server_name _;
location /jenkins {
proxy_pass http://127.0.0.1:8080;
}
}
sudo usermod -a -G docker jenkins
sudo service docker start
sudo service jenkins start
sudo service nginx start
sudo chkconfig docker on
sudo chkconfig jenkins on
sudo chkconfig nginx on
檢查實例的安全組 –
Solv編輯它!我在端口8080的安全組中添加了自定義TCP規則。謝謝@HussainZKathawala –