1. 문제점

VirtualBox환경 Linux에서 mount path 쓰기가 안될때

 

2. 해결 방법

sudo adduser 유저명 vboxsf

1. 백업

 

1.1 mysql 백업

 

- 기존 mysql 비밀번호 확인

# cat /opt/redmine-3.3.3-1/apps/redmine/htdocs/config/database.yml

production:
  adapter: mysql2
  database: bitnami_redmine
  host: localhost
  username: bitnami
  password: xxxxxxxxxx

 

- mysql 백업 파일 생성

# /opt/redmine-3.3.3-1/mysql/bin/mysqldump -u bitnami -p bitnami_redmine > backup.sql

 

1.2 redmine 데이터 파일 백업

# cd /opt/redmine-3.3.3-1/apps/redmine/htdocs
# tar zcvf files.tar.gz files

 

1.3 redmine 플러그인 백업

# cd /opt/redmine-3.3.3-1/apps/redmine/htdocs
# tar zcvf plugins.tar.gz plugins

2. 복구

 

1.1 신규 서버에 bitnami-redmine 설치. 

 

- 설치 바이너리 다운로드 (https://bitnami.com/stack/redmine/installer)

# wget https://downloads.bitnami.com/files/stacks/redmine/3.3.3-1/bitnami-redmine-3.3.3-1-linux-x64-installer.run

 

- 설치

# chmod 755 bitnami-redmine-3.3.3-1-linux-x64-installer.run
# ./bitnami-redmine-3.3.3-1-linux-x64-installer.run

 

- 신규 서버의 http://xxx.xxx.xxx.xxx/redmine/phpmyadmin 외부 접근 가능하게 하기 위해 내 아이피를 추가

# vi /opt/redmine-3.3.3-1/apps/phpmyadmin/conf/httpd-app.conf

<IfVersion >= 2.3>
Require local
Require ip xxx.xxx.xxx.xxx
</IfVersion>

 

1.2 신규 서버의 mysql 비밀번호 확인

# cat /opt/redmine-3.3.3-1/apps/redmine/htdocs/config/database.yml

production:
  adapter: mysql2
  database: bitnami_redmine
  host: localhost
  username: bitnami
  password: xxxxxxxxxx

 

1.3 mysql 복구

 

- 기본설치된 redmine db를 삭제

# /opt/redmine-3.3.3-1/mysql/bin/mysql -u bitnami -p bitnami_redmine

mysql> drop database bitnami_redmine;
Query OK, 1 rows affected (0.00 sec)

mysql> create database bitnami_redmine;
Query OK, 1 row affected (0.00 sec)

mysql> exit
Bye

 

- 복원용 DB파일을 로딩

# /opt/redmine-3.3.3-1/mysql/bin/mysql -u bitnami -p bitnami_redmine < backup.sql

 

1.4 redmine 데이터 파일 복구

# cd /opt/redmine-3.3.3-1/apps/redmine/htdocs/
# rm -f files
# tar zxvf files.tar.gz

 

1.5 redmine 플러그인 복구

# cd /opt/redmine-3.3.3-1/apps/redmine/htdocs
# rm -rf plugins
# tar zxvf plugins.tar.gz

 

1.6 DB migration 처리

# cd /opt/redmine-3.3.3-1/apps/redmine/htdocs
# /opt/redmine-3.3.3-1/ruby/bin/rake db:migrate RAILS_ENV="production"
# /opt/redmine-3.3.3-1/ruby/bin/rake redmine:plugins:migrate RAILS_ENV=production

 

1.7 시작 프로그램 등록

 

- Redhat 계열

$ cp /opt/redmine-3.3.3-1/ctlscript.sh /etc/init.d/bitnami-redmine

# 부팅스크립트 시작 부분 수정
$ vi /etc/init.d/bitnami-redmine

#!/bin/sh
#
# chkconfig: 2345 80 30
# description: Bitnami services

# 서비스로 등록
$ chkconfig --add bitnami-redmine

 

- Ubuntu 계열

$ sudo cp /opt/redmine-3.3.3-1/ctlscript.sh /etc/init.d/bitnami-redmine
$ sudo chmod +x /etc/init.d/bitnami-redmine

# 부팅 스크립트 시작부분 수정
$ sudo vi /etc/init.d/bitnami-redmine

### BEGIN INIT INFO
# Provides:          bitnami-redmine
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable services provided by daemon.
### END INIT INFO

# 서비스로 등록
$ sudo update-rc.d -f bitnami-redmine defaults
$ sudo update-rc.d -f bitnami-redmine enable

 

http://blog.naver.com/PostView.nhn?blogId=ohminy11&logNo=221570951019&categoryNo=0&parentCategoryNo=0&viewDate=¤tPage=1&postListTopCurrentPage=1&from=postView

 

중성선과 Sonoff T1 US wifi wall light Switch 3ch (3gang) - 중성선 없이 5V 전원으로 Sonoff T1 US 3gang switch 세팅

​​​​아~~주아~~~~~~주 오래전부터 구상해왔던 벽면 스위치가 드디어 결실을 맺었습니다!~~~~!!!​​​...

blog.naver.com

https://tasmota.github.io/docs/devices/Sonoff-T1/

+ Recent posts