Linux Jenkins Install

環境: お名前 VPS サーバー

手順:

参考URL:https://weblabo.oscasierra.net/jenkins-install-centos7/

yum install vim
yum install wget
yum install git
yum install mlocate

curl -o /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
yum install java-1.8.0-openjdk

systemctl enable jenkins
systemctl start jenkins
sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload

###vim /etc/sysconfig/jenkins
JENKINS_ARGS="--prefix=/jenkins"

###vim /etc/httpd/conf/httpd.conf

ProxyPass           /jenkins http://xxxx.com:8080/jenkins nocanon
ProxyPassReverse    /jenkins http://xxxx.com:8080/jenkins
ProxyRequests       Off
AllowEncodedSlashes NoDecode

<Proxy http://xxxx.com:8080/jenkins*>
  Order deny,allow
  Allow from all
</Proxy>


★★ お名前の管理画面からも 8080 port 開けること。