1.Update your system
sudo su
apt-get update
2.Install Nginx
apt-get install nginx -y
service nginx status
3.Install JDK
apt-get install openjdk-7-jdk -y
java -version
4.Install Jenkins
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
apt-get install jenkins -y
service jenkins status
nano /etc/default/jenkins (check or modify it)
service jenkins start
5.Open Jenkins by web browser
http://localhost:8080
6.Get Administrator Password
nano /var/lib/jenkins/secrets/initialAdminPassword
沒有留言:
張貼留言