knowledge를 1.10 버전에서 1.12로 업그레이드 시도
3605 단어 Knowledge
1.12의 안정판이 나왔기 때문에 1.10부터 업그레이드하기로 했습니다.
1.10->1.11->1.12 단계 업데이트를 거쳤습니다.
앞으로의 목표를 위해 나는 그것을 비망록으로 기록할 것이다.
※ 1.11, 1.12 버전 승급 절차는 다음과 같이 반복됩니다.
1. 다운로드
1.11과 1.12의 knowledge.Warr 파일을 다운로드하다.
2. 백업 (DB를postgresql로 변경한 경우)
# pg_dump knowledge -U knowuser > /tmp/knowledge-20180402
※ DB나 아이디는 임의입니다.3. 구성
다운로드한 knowledge.Warr를
/usr/local/apache-tomcat-8.5.16/webapps/
아래에 놓으세요.# mv knowledge.war knowledge.war_org
# cd /usr/local/apache-tomcat-8.5.16/webapps/
# ll
合計 121136
drwxr-x---. 3 root root 4096 7月 27 2017 ROOT
drwxr-x---. 14 root root 4096 7月 27 2017 docs
drwxr-x---. 6 root root 83 7月 27 2017 examples
drwxr-x---. 5 root root 87 7月 27 2017 host-manager
drwxr-x---. 9 root root 122 7月 28 2017 knowledge
-rw-r--r--. 1 root root 124031539 7月 22 2017 knowledge.war
drwxr-x---. 5 root root 103 7月 27 2017 manager
# mv /tmp/knowledge.war ./
# ll
合計 369856
drwxr-x---. 3 root root 4096 7月 27 2017 ROOT
drwxr-x---. 14 root root 4096 7月 27 2017 docs
drwxr-x---. 6 root root 83 7月 27 2017 examples
drwxr-x---. 5 root root 87 7月 27 2017 host-manager
-rw-r--r--. 1 root root 130025731 4月 2 16:49 knowledge.war
-rw-r--r--. 1 root root 124031539 7月 22 2017 knowledge.war_org
-rw-r--r--. 1 root root 124660029 4月 2 16:28 knowledge.war_org_11
drwxr-x---. 5 root root 103 7月 27 2017 manager
4.tomcat 재시작반영하기 위해tomcat을 다시 시작합니다.
# /usr/local/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
[root@knowledge webapps]# /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
5. 잠깐, 브라우저에서 knowlege를 엽니다.6. 유지 관리 모드
유지 관리 실행 링크를 클릭합니다.

7. 관리자 로그인

8. DB 업데이트
"execute"단추를 누르면 DB 업데이트를 시작합니다.
화면의 출력은 DB 업데이트가 완료된 화면입니다.
DB 업데이트가 완료되면 버전 업그레이드가 완료됩니다.
"Back to knowledge top"링크를 클릭하여 knowledge 화면으로 돌아갑니다.
1.11의 경우

1.12의 경우

Reference
이 문제에 관하여(knowledge를 1.10 버전에서 1.12로 업그레이드 시도), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/htakeda/items/a9d3e2dfad67dffb7262텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)