Tech Tips

  1. Uncategorized
  2. 235 view

[Jenkins][Nginx]Try to Install

jenkins nginx

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

Uncategorized recent post

  1. Run Amazon FreeRTOS on M5Stack Core2 for AWS …

  2. Udacity Self-Driving Car Engineer Nanodegree …

  3. Install sbt 1.0.0 and run sample template

  4. Visualization of Neural Network and its Train…

  5. [Machine Learning]Created docker image includ…

関連記事

PAGE TOP