Jenkinsの初歩的な入門---インストールとユーザーコントロール


Jenkins公式サイト:http://jenkins-ci.org/
インストールの説明:https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins
On RPM-based distric Linux(RHEL)、CentOS、Fedora or Scintific Linux、you can install Jenkins through yum.
Recent versions are available in a YUM repository.
Installation
Add the Jenkins repository to the yum repos,and install Jenkins from here.
  • sudo wget-O/etc/yum.repos.d/jecins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
  • sudo rpm--import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  • sudo yum install jecins
  • Installation of a stable version
    The re is also a LTS YUM repository for the LTS Release Line
  • sudo wget-O/etc/yum.repos.d/jecins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
  • sudo rpm--import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  • sudo yum install jecins
  • Installation of Java
    Jenkins requires Java in order to run,yet certain distros don't include this by default.To install the Open Java Development Kit(OpenJDK)run the follwing:
    sudo yum install java
    ノート: If running CentOS,ensure you follow the ガイドbelow.
    Start/Stop
  • sudo service jeck start/stop/retart
  • sudo chkconfig junins on
  • 初心者のために、私は直接iptablesをオフにしました.必要のないミスがないようにします.
    juninsの運転状態を確認します.
    [root@Main ~]# ps -ef |grep jenkins
    jenkins   6691     1  0 06:27 ?        00:02:53 /etc/alternatives/java -Dcom.sun.akuma.Daemon=da/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --ajp13Port=8
    root      7823  7346  0 12:42 pts/1    00:00:00 grep jenkins
    インストールが完了したらブラウザで開きます.URL:8080でいいです.192.168.179.128:8080のようです.
    Jenkinsユーザーは管理者として最初に登録したユーザを制御します.他の登録ユーザにはいかなる権限もありません.管理者が手動で追加する必要があります.
    wKiom1WsuSGxxqLFAAKATZJydSM951.jpg
    wKiom1WsuSLwC9GBAAKKZYRrUQU189.jpg
    「Configure Global Security」では「セキュリティの有効化」、「Jenkins独自のユーザーデータベース」、「ユーザー登録を許可する」にチェックします.
    授権ポリシーで「安全行列」を選択します.セキュリティ行列では、ユーザーごとに権限制御ができます.今後は具体的な権限制御をゆっくり分析します.
    このようなユーザ制御は、管理者がすべての権限を持っており、他の従来のユーザは登録が必要であり、登録後に管理者に権限を与えるように通知するという意味である.
    この記事は「楓の歌」ブログから来ました.転載は作者に連絡してください.