プログラミング + アカデミック + 何か面白いこと

  1. Programming
  2. 69 view

[Jenkins][Nginx]Try to Install

jenkins nginx

I installed jenkins because I wanted to run Jenkins on ubuntu13 on AmazonEC2.

1. Install Java

$sudo apt-get install default-jdk

2. Install Nginx

$sudo apt-get install nginx
$sudo vim /etc/nginx/sites-enabled/default
server {
        listen 80;

        root root /usr/share/nginx/html;
        index index.html index.htm;
 
        server_name (IPaddress);
 
        location /jenkins {
                proxy_pass http://(IPaddress):8080/jenkins;
        }
}
$sudo /etc/init.d/nginx restart

3. Install Jenkins

$ sudo vim /etc/apt/sources.list
deb http://pkg.jenkins-ci.org/debian binary/
$ sudo apt-get update
W: GPG error: http://ppa.launchpad.net jaunty Release: 公開鍵を利用できないため、以下の署名は検証できませんでした: 
NO_PUBKEY 1A2B3C4D5E6F7G8H
$ gpg --keyserver keyserver.ubuntu.com --recv-keys 1A2B3C4D5E6F7G8H
gpg: 鍵12345678をhkpからサーバーwwwkeys.eu.pgp.netに要求
gpg: 鍵12345678: 公開鍵“Launchpad PPA for TualatriX”を読み込みました
gpg: 処理数の合計: 1
gpg:               読込み: 1  (RSA: 1)
$ gpg --export --armor 1A2B3C4D5E6F7G8H | sudo apt-key add -
OK
$ sudo apt-get update
$ sudo apt-get install jenkins
$ sudo vim /etc/default/jenkins
JENKINS_ARGS="--prefix=/jenkins --webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
$ sudo service jenkins restart

4. Access

http://(IPaddress)/jenkins

Programming recent post

  1. Install sbt 1.0.0 and run sample template

  2. [Machine Learning]Created docker image includ…

  3. [Node.js]How to write batch script with Node.…

  4. [Play][Scala]Develop Request Driven Batch Usi…

  5. [OpenCV][Ruby]Auto check web page design corr…

関連記事

PAGE TOP