================================================================================
Jenkins Environment
================================================================================
用deploy用户进行安装jenkins
su - deploy
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
sudo systemctl enable jenkins
sudo /etc/systemd/systemd-sysv-install enable jenkins
check the service whether is running normally:
```sudo service jenkins status```
run Jenkins:
```sudo service jenkins start```
stop Jenkins:
```sudo service jenkins stop```
restart Jenkins:
```sudo service jenkins restart```
Install Directory:/var/lib/jenkins
Log Directory:/var/log/jenkins/jenkins.log
================================================================================