A colleague asked me to help install confluence. He didn't know anything before, but he knew that his friend gave a virtual machine and there was a wiki software in it to manage documents. After receiving this task, I found out for a while that I used a software called confluence. Internet g discovered that it was originally a commercial software, and many people said it was good, and there were still many attempts to crack it. At the beginning, I started to follow what I said on the Internet. I found that it could not be done simply and smoothly. I finally got the confluence directory from the virtual machine and installed it successfully, so I had no chance of cracking.
Confluence has two installation methods: one is independent installation, which is equivalent to built-in tomcat, and the other is war package installation. Tomcat must be installed first. Because I am using Tomcat for development, 2nd methods are used. The Virtual Machine is installed independently. I copied the contents of its confluence directory for installation. The software operation also requires database support. It can use a local file system or multiple databases. I use SQL Server, this is also because you already have this database (you need to first establish a confluence database ).
First, copy the confluence directory to a directory. I put it under D. Then, place the deployment file confluence. xml under the conf \ Catalina \ localhost of Tomcat. The content is as follows:
<Context Path = "/confluence" docbase = "D:/confluence" DEBUG = "0" reloadable = "true">
<Logger classname = "org. Apache. Catalina. Logger. filelogger"
Prefix = "Atlassian-Confluence." suffix = ". log" timestamp = "true"/>
</Context>
Then, modify the path in the confluence/WEB-INF/classes/confluence-init.properties file: confluence. Home = D:/confluence/data. Use a backslash.
The next step is to start Tomcat. From the manager, you can see that confluence has been installed. Click to enter to initialize it. A prompt is displayed, prompting you to enter the license. Because the virtual machine had been cracked, but the license was not provided, I had to copy one in the related cracking instructions on the Internet. I didn't expect it to work.
The database support method will be selected during initialization. I chose the SQL Server server and the JDBC Method directly. The jtds driver is already in the lib directory, therefore, you do not need to install the driver any more. You only need to enter the JDBC connection string JDBC: jtds: sqlserver: // localhost: 1433/<database>
Since there is no time to use confluence, I am only responsible for installation and use it for my colleagues. I hope it can be used in the future.