curl:(7)无法连接到localhost端口8080:连接被拒绝错误在aws实例上安装jenkins

时间:2017-05-22 00:45:46

标签: git maven amazon-web-services curl jenkins

当我在运行以下命令后运行curl http://localhost:8080时,我收到以下错误

卷曲:(7)无法连接到localhost端口8080:拒绝连接

以下是命令

sudo yum -y update
sudo yum install -y git nginx java-1.8.0-openjdk-devel aws-cli
sudo alternatives --config java
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn –v
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
sudo service jenkins start
sudo chkconfig --add jenkins

0 个答案:

没有答案