In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to install Confluence with docker in Centos". In daily operation, I believe many people have doubts about how to install Confluence with docker in Centos. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install Confluence with Centos with docker". Next, please follow the editor to study!
1. Download the official image
Docker pull atlassian/confluence-server:6.15.7-alpine
two。 Create and run the container
Docker run-m 4096M-- memory-swap-1-e LANG=en_US.UTF-8-e JVM_MAXIMUM_MEMORY=4096m-host-- net=host-- name wiki-d-p 8090-p 8091-v / data/wiki:/var/atlassian/application-data/confluence-v / usr/share/zoneinfo/Asia/Shanghai:/etc/localtime atlassian/confluence-server:6.15.7-alpine
Note: setting the time zone with-e TZ=Asia/Shanghai does not take effect, so-v / usr/share/zoneinfo/Asia/Shanghai:/etc/localtime is used directly.
3. Enter the initialization interface
Access address: http:// server IP:8090/setup/setupstart.action
4. Initialization
a. Set language
b. Set up successfully, and select "Product installation", and click "next".
c. Do not select any options and go straight to "next".
d. Enter the authorization code interface and remember the authorization code. Do not close the current page, it will be used later.
4. Get the jar package of atlassian-extras-decoder. The corresponding jar package version in my current image version is atlassian-extras-decoder-v2-3.4.1.jar.
a. Enter the container
Docker exec-it wiki / bin/bash / / wiki is the name I gave to the container. If you are not, please replace it with the container name after name in step 2.
b. Enter the directory of atlassian-extras-decoder-v2-3.4.1.jar
/ opt/atlassian/confluence/confluence/WEB-INF/lib/ls | grep atlassian-extras-decoder-v2-3.4.1.jar / / check whether the jar exists
c. Exit the container and start copying jar packages locally
Exit / / exit the container
Copy the jar package locally
/ / docker cp container name: save path docker cp wiki:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar / tmp/ on the machine inside the container
Check to see if there is a jar package with the same name under the saved path
Ll / tmp or ls / tmp / / tmp is the save path on my machine, please replace it yourself
If it has been copied successfully, first make a copy of the jar package and change the name of the jar package to atlassian-extras-2.4.jar (be sure to change it)
Cp atlassian-extras-decoder-v2-3.4.1.jar atlassian-extras-2.4.jar// change the name of the original jar to mv atlassian-extras-decoder-v2-3.4.1.jar atlassian-extras-decoder-v2-3.4.1.jar.bak// or delete rm-rf atlassian-extras-decoder-v2-3.4.1.jar directly
Copy the atlassian-extras-2.4.jar package to your computer and use it later.
5. Download tool
Link: https://pan.baidu.com/s/1_adhOk0wM-xeKdpAB0mMlQ
Extraction code: m2z6
Download successfully and decompress
6. Start activating
a. Open the extracted folder and run confluence_keygen.jar
b. Write "Name" casually.
c. Fill in the authorization code in step 4 of this article into ServerID
d. Click the ".gen" button
c. Click ".patch!" Button, select the jar package you just downloaded, please change it to atlassian-extras-2.4.jar, otherwise you can't choose it.
At this point, the activation of the jar package is complete, and the key information is saved, which will be used for activation later.
7. Replace the jar package inside the container
a. Upload the above activated jar package to the server and modify it back to the previous name.
Mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.4.1.jar
b. To prevent the jar from not taking effect, enter the container and delete the atlassian-extras-decoder-v2-3.4.1.jar inside the container.
/ / enter the container docker exec-it wiki / bin/bash / / enter the corresponding directory cd / opt/atlassian/confluence/confluence/WEB-INF/lib/// to delete the jar package rm-rf atlassian-extras-decoder-v2-3.4.1.jar// exit the container exit
c. Copy the new atlassian-extras-decoder-v2-3.4.1.jar into the container
/ / docker cp local file path Container name: container internal directory path docker cp / tmp/atlassian-extras-decoder-v2-3.4.1.jar wiki:/opt/atlassian/confluence/confluence/WEB-INF/lib/
d. Restart the container
Docker restart wiki
8. Continue activating
a. On the authorization code page, fill in the key information and click next.
b. Go to the database settings page, select my own database, and click next.
c. To set up the database, I chose mysql, but I need to download the database driver myself, put it in the corresponding directory in the container, and restart the container.
d. Click "Mysql driver" in the above figure to enter the channel download interface
Scroll the page to "mysql" in the following figure, and click "" to download the driver on the mysql official website.
Select the system to download
Choosing a download at random, I chose tar.gz
After the download is complete, the compressed package will be decompressed. Put the mysql driver mysql-connector-java-5.1.47-bin.jar (note the version number, may be different) package on the server, and then copy it into the container.
/ / copy the driver to the container internal docker cp / tmp/mysql-connector-java-5.1.47-bin.jar wiki:/opt/atlassian/confluence/confluence/WEB-INF/lib/// to restart the container docker restart wiki
If you revisit the http:// server IP:8090/setup/setupstart.action, you will re-enter the interface of setting up the database.
Click "next", as shown in the following figure, indicating that the mysql driver has been successful.
Now you can configure the database information, as long as you have your own database service, if not, please install it yourself and create a corresponding database on the database.
After configuring the database, click next. Then after waiting for the completion, the system completes the installation.
If there are articles that are not clearly explained during the process of configuring the database, you can check the official documentation.
Https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html
At this point, the study on "how to install Confluence with Centos with docker" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.