728x90
반응형

Install suggested plugins: Jenkins 커뮤니티에서 가장 유용하다고 알려진 플러그인들을 설치합니다.

 

전 container를 jenkins로 생성하였습니다.

sudo docker container exec -u 0 -it [container이름] bash

 

 

 

 

jenkins.war가 설치되어있는 폴더로 이동합니다.

cd /usr/share/jenkins 

 

 

 

 

아래의 url로 이동하여 원하는 version을 확인합니다.

 

http://updates.jenkins-ci.org/download/war/

 

jenkins.war

2.5SHA-1: 5e669825a955c9091ac8a858f4f6dcae782f3d87, SHA-256: d8de143eef34d0d9d12cc314901eab57f55ddce74c5f6e567920bf4fc0571823

updates.jenkins-ci.org

 

 

 

 

wget 명령어를 통해 jenkins.war 파일을 다운로드 받습니다.

wget http://updates.jenkins-ci.org/download/war/2.248/jenkins.war

 

 

 

 

소유권한을 변경합니다.

chown jenkins:jenkins /usr/share/jenkins/jenkins.war

 

 

 

 

container를 종료 후 재시작 합니다.

exit
docker restart jenkins

 

 

 

 

정상적으로 적용이 되었다면 Jenkins 실행시 하단에 버전업된 부분을 확인 할 수 있습니다.

 

728x90
반응형
728x90
반응형

 

# OS환경은 CentOS 7.0으로 진행되었습니다.

 

이전글에서 nginx를 설치 하였습니다.

 

 

 

nginx의 기본 설정을 확인해 보겠습니다.

 

http 속성은 /etc/nginx/nginx.conf 에 있습니다.

[root@NGINX /]# vi /etc/nginx/nginx.conf  
user  nginx;                                                                                                                                     
worker_processes  1;                                                                                                                             
                                                                                                                                                 
error_log  /var/log/nginx/error.log warn;                                                                                                        
pid        /var/run/nginx.pid;                                                                                                                   
                                                                                                                                                 
                                                                                                                                                 
events {                                                                                                                                         
    worker_connections  1024;                                                                                                                    
}                                                                                                                                                
                                                                                                                                                 
                                                                                                                                                 
http {                                                                                                                                           
    include       /etc/nginx/mime.types;                                                                                                         
    default_type  application/octet-stream;                                                                                                      
                                                                                                                                                 
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '                                                                    
                      '$status $body_bytes_sent "$http_referer" '                                                                                
                      '"$http_user_agent" "$http_x_forwarded_for"';                                                                              
                                                                                                                                                 
    access_log  /var/log/nginx/access.log  main;                                                                                                 
                                                                                                                                                 
    sendfile        on;                                                                                                                          
    #tcp_nopush     on;                                                                                                                          
                                                                                                                                                 
    keepalive_timeout  65;                                                                                                                       
                                                                                                                                                 
    #gzip  on;                                                                                                                                   
                                                                                                                                                 
    include /etc/nginx/conf.d/*.conf;                                                                                                            
} 

 

 

 

 

server 속성은 /etc/nginx/conf.d/default.conf 에 있습니다.

 

아래의 경로에 있는 default.conf 파일을 열어봅니다.

[root@NGINX /]# vi /etc/nginx/conf.d/default.conf  

 

 

 

 

현재 보여지는 설정은 기본 설치 후 설정입니다.

 

각종 설정들이 주석처리 되어있지만 필요에 의해 주석을 해제하고 사용하면 됩니다.

server {                                                                                                                                         
    listen       80;                                                                                                                             
    server_name  localhost;                                                                                                                      
                                                                                                                                                 
    #charset koi8-r;                                                                                                                             
    #access_log  /var/log/nginx/host.access.log  main;                                                                                           
                                                                                                                                                 
    location / {                                                                                                                                 
        root   /usr/share/nginx/html;                                                                                                            
        index  index.html index.htm;                                                                                                             
    }                                                                                                                                            
                                                                                                                                                 
    #error_page  404              /404.html;                                                                                                     
                                                                                                                                                 
    # redirect server error pages to the static page /50x.html                                                                                   
    #                                                                                                                                            
    error_page   500 502 503 504  /50x.html;                                                                                                     
    location = /50x.html {                                                                                                                       
        root   /usr/share/nginx/html;                                                                                                            
    }                                                                                                                                            
                                                                                                                                                 
    # proxy the PHP scripts to Apache listening on 127.0.0.1:80                                                                                  
    #                                                                                                                                            
    #location ~ \.php$ {                                                                                                                         
    #    proxy_pass   http://127.0.0.1;                                                                                                          
    #}                                                                                                                                           
                                                                                                                                                 
    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000                                                                         
    #                                                                                                                                            
    #location ~ \.php$ {                                                                                                                         
    #    root           html;                                                                                                                    
    #    fastcgi_pass   127.0.0.1:9000;                                                                                                          
    #    fastcgi_index  index.php;                                                                                                               
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;                                                                           
    #    include        fastcgi_params;                                                                                                          
    #}                                                                                                                                           
                                                                                                                                                 
    # deny access to .htaccess files, if Apache's document root                                                                                  
    # concurs with nginx's one                                                                                                                   
    #                                                                                                                                            
    #location ~ /\.ht {                                                                                                                          
    #    deny  all;                                                                                                                              
    #}                                                                                                                                           
} 

 

 

 

80포트로 방화벽이 걸려있으면 아래와 같이 80포트 방화벽을 열어줍니다.

firewall-cmd --permanent --zone=public --add-port=80/tcp 
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https

 

 

 

nginx 자동시작 설정을 합니다.

systemctl enable nginx
[root@NGINX /]# systemctl enable nginx                                                                                                           
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service, pointing to /usr/lib/systemd/system/nginx.service.

 

 

 

 

nginx를 시작합니다.

systemctl start nginx

 

 

 

 

 

방화벽을 reload합니다.

firewall-cmd --reload

 

 

 

그외 명령어와 설정파일들 위치 입니다.

 

- nginx 관련 명령어

서버 시작 : sudo systemctl start nginx

서버 자동 시작 등록 : sudo systemctl enable nginx

서버 상태 확인 : sudo systemctl status nginx

서버 정지 : sudo systemctl stop nginx

서버 재시작 : sudo systemctl restart nginx

설정 리로드 : sudo systemctl reload nginx

 

- nginx 설정파일

/etc/nginx/ : nginx 설정파일 디렉토리

/etc/nginx/nginx.conf : 메인 설정파일(접속자 수, 동작 프로세스 수 등 퍼포먼스에 대한 설정)

/etc/nginx/conf.d/ : nginx.conf에서 불러들일 수 있는 파일 저장

/etc/nginx/fastcgi.conf : FastCGI 환경설정 파일

/etc/nginx/sites-available/ : 비활성화된 사이트 파일

/etc/nginx/sites-enabled/ : 활성화된 사이트 파일

728x90
반응형
728x90
반응형

 

블로그에 AdSense 광고로 발생하는 수익이 100달러가 넘었습니다.

 

100달러 이전까지는 별도의 안내없이 진행되고 있었는데요.

 

100달러가 넘어가니 아래와 같은 '지급에 보류가 걸려있습니다.' 경고가 발생했습니다.

 

결제 수단을 등록하지 않아 지급에 보류가 걸려버렸는데요.

 

 

 

 

결제 보류를 해결하기 위해 '결제 수단 등록' 을 진행해보겠습니다.

 

왼쪽 지급 메뉴로 진입합니다.

 

빨간색으로 강조된 '지급을 받으려면 유효한 결제 수단을 선택하세요.' 문구쪽의 업데이트 버튼을 클릭합니다.

 

 

 

결제 수단이 없기 때문에 새로운 결제 수단을 등록해야 합니다.

 

'결제 수단 추가 버튼'을 클릭합니다.

 

 

 

2가지 항목이 보여지는데 '새 은행 송금 세부정보 추가'란을 선택합니다.

 

 

 

 

예금주의 이름: 영문이름

은행 이름: STANDARD CHARTERED FIRST BANK KOREA

SWIFT 은행 식별 코드(BIC): SCBLKRSE

계좌 번호: 외화 계좌번호 입력

계좌 번호 재입력: 외화 계좌번호 입력

 

SC제일은행을 기준으로 작성되었습니다.

 

다른 금융기관의 SWIFT CODES는 아래의 링크로 확인이 가능합니다.

 

http://www.bank-codes.com/country/south-korea

 

Find Swift Codes In KOREA, REPUBLIC OF

Swift codes. Business Identifier Codes (BIC codes) for thousands of banks and financial institutions in more than 210 countries.

www.bank-codes.com

 

 

 

 

정보를 입력하고 저장버튼을 클릭하면 정상적으로 결제 수단이 추가됩니다.

 

아래와 같이 경고문구도 사라지고 정상적인 지급이 이루어집니다.

 

728x90
반응형

+ Recent posts