docker compose를 이용하면 쉽게 사용할 수 있다.

 

--- docker-compose.yml ---

version: '3.6'
services:

  db2:
    image: ibmcom/db2
    container_name: db2
    privileged: true
    restart: always
    volumes:
      - /data1/docker/db2/data:/database
    ports:
      - 60000:50000
    environment:
      LICENSE: accept
      DB2INST1_PASSWORD: db2inst1
      DBNAME: test

---------------------------------

설정은 각자 상황에 맞게...

이후 설치가 완료되면 아래와 같이 docker instance 접속 후 DB를 생성하면 된다.

---------------------------------

# docker 접속

    docker exec -it db2 /bin/bash

# DB 생성

    su - db2inst1 # 계정 변경

    db2 create database test # database 생성

    db2 connect to test user db2inst1 using db2inst1 # database와 계정을 연결

---------------------------------

위와 같이 설명하면 간단하게 DB2를 사용할 수 있다.

 

Posted by 짱똘애비
,

참고 사이트: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step

  1. sudo apt-get install apache2 libapache2-mod-passenger
  2. sudo apt-get install mysql-server mysql-client
  3. sudo apt-get install redmine redmine-mysql
  4. sudo apt-get installer bundler
    위 설명에는 나와있지 않지만 나중에 웹 접속을 하면 에러가 발생하는데 이를 해결하기 위한 것임
  5. sudo ln –s /usr/share/redmine/public /var/www/redmine
  6. /etc/apache2/mods-available/passenger.conf 파일에 아래 내용 추가
    PassengerDefaultUser www-data
  7. /etc/apache2/sites-available/000-default.conf 에 아래 내용 추가
    <Directory /var/www/redmine>
        RailsBaseURI /redmine
        PassengerResolveSymlinksInDocumentRoot on
    </Directory>
    Alias /redmine /var/www/redmine
    만약 virtual host로 구성하고 싶다면 환경에 맞게 apache설정 파일 수정하면 됨
  8. Gemfile.lock 생성
    /usr/share/redmine 디렉토리에 root로 설치되기 때문에 웹에서 접속 시 www-data 유저로 실행될 때 해당 디렉터리에 Gemfile.lock을 생성하지 못함. 이를 해결하기 위해 Gemfile.lock을 아래와 같이 만들어 준다.
    sudo touch /usr/share/redmine/Gemfile.lock
    sudo chown www-data:www-data /usr/share/redmine/Gemfile.lock
  9. 브라우저로 http://[IP]/redmine 접속
    기본 ID/PW는 admin/admin임
Technorati 태그: ,

'개발 > 기타' 카테고리의 다른 글

Ubuntu에서 sqldeveloper 실행 시 core가 발생할 때  (0) 2014.05.26
Posted by 짱똘애비
,

참고: http://mcchae.egloos.com/11127728

 

.config/gtk-3.0/gtk.css 파일을 아래와 같이 편집한 후 터미널을 다시 띄우면 된다.

@define-color ubuntu_orange #fb9267;

TerminalWindow .notebook tab:active {

    background-color: shade(@ubuntu_orange,1.1);

}

Technorati 태그: ,,
Posted by 짱똘애비
,

현재 사내에서 사용되는 subversion의 directory구조가 subversion에서 사용하는 기본 디렉토리 구조를 가지고 있지 않기 때문에 이곳에 간략하게 옮기는 방법을 기술해둔다. branch와 tag는 무시한다.

 

아래와 같은 순서로 작업을 진행하면 된다.

 

1. gitlab을 이용해 repository를 생성한 후 git-svn이란 symbolic-ref를 만든다.

git symbolic-ref HEAD refs/heads/git-svn

2. svn을 git으로 clone하기

git svn clone [svn url] --no-metadata [저장할 디렉토리]

3. 복제본을 생성해둔 repository와 연결한 후 push한다.

git remote add bare [gitlab repository 경로]

git config remote.bare.push 'refs/remotes/*:refs/heads/*'

git push bare

4. gitlab repository에서 master 브랜치로 변경한다.

git branch –m git-svn master

Posted by 짱똘애비
,

sqldeveloper/bin/sqldeveloper를 열어 아래 내용을 첫 부분에 추가한다.


unset GNOME_DESKTOP_SESSION_ID
unset DBUS_SESSION_BUS_ADDRESS


'개발 > 기타' 카테고리의 다른 글

Ubuntu 14.04에 Redmine 설치하기  (0) 2014.10.23
Posted by 짱똘애비
,

아래와 같이 작성하면 됨


count=0

while true

do

modmin=$((`date +%M` / 10 * 10));

# echo "`date +%M` --> $modmin"

echo $count >> logfile_`date +%y%m%d%H`$modmin.log

sleep 1

count=$((count+1))

done



Posted by 짱똘애비
,

아래 URL 참고

  • http://sgdev-blog.blogspot.sg/2014/01/maven-explanation.html
  • http://sgdev-blog.blogspot.sg/2014/04/maven-explanation-part-2.html


'개발 > MAVEN' 카테고리의 다른 글

MAVEN project 생성  (0) 2012.12.11
Posted by 짱똘애비
,

VBoxManage modifyhd <VID 이름> --resize <용량 MB 단위>


참고: http://leechwin.tistory.com/entry/VirtualBox-vdi-%EC%9A%A9%EB%9F%89-%EB%8A%98%EB%A6%AC%EA%B8%B0

Posted by 짱똘애비
,

사이트: http://www.postgresql.org


1. 설치

sudo apt-get install postgresql

sudo apt-get install postgresql-doc-9.1

sudo aptget install pgadmin3


2. 설정

sudo vi /etc/postgresql/9.1/main/postgresql.conf

listen_addresses = 'localhost' --> '*'를 사용하면 외부 접속을 받을 수 있다.

sudo vi /etc/postgresql/9.1/main/pg_hba.conf

# IPv4 local connections:

# host    all             all             127.0.0.1/32            md5

host    all             all             0.0.0.0/0            md5 --> 외부접속을 허용하려면 IP부분을 수정하면 된다.


3. 재시작

sudo /etc/init.d/postgresql restart


4. 기본 사용자(postgre)의 암호 변경

shell로그인: sudo -u postgres psql

ALTER USER postgres encrypted password '암호';

shell종료: \q

shell도움말: \?


5. DB생성 및 접속

sudo -u postgres createdb <db이름>

sudo -u postgres psql <db이름>


Posted by 짱똘애비
,

Command + Option + T 키를 이용하면 사이드 바를 숨기거나 표시할 수 있다.

참고: http://pc-to-mac-changer.blogspot.kr/2010/02/side-bar-hide.html

Posted by 짱똘애비
,