Summary of building confluence

1. Refer to the article
https://blog.csdn.net/fanren224/article/details/62416280 to
download related packages

. There are a few points to pay special attention to
. The atlassian-extras-2.4.jar in the directory can also be copied to the local, it is not necessary to execute genkey.sh under the linux system;
b. It needs to be executed under cmd under windows, you can not execute genkey.sh, use java -jar confluence_keygen.jar Note that opening cmd is also opened with administrator privileges;
c. There is an atlassian-extras-2.4.bak in the generated new atlassian-extras-2.4.jar directory; at this time, the file atlassian-extras-2.4.jar should be Return to the lib under the installation directory; instead of atlassian-extras-2.4.bak

2. If you start the configuration directly, hsqldb is used by default, if you want to replace the mysql database; find the confluence.cfg.xml file,
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="hibernate.connection.isolation">2</property>
    <property name="hibernate.connection.password">test123</property>
    <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/?characterEncoding=UTF-8</property>
    <property name="hibernate.connection.username">test</property>
    <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

Although the configuration is completed, a leakMemory error will still be reported at startup. It is initially determined that there is still a hsql configuration that has not been handled correctly. If so, it is recommended to reinstall. I first started the application according to the hsql configuration method, and then tried to change it back to mysql

3. In addition, the nproc configuration in limits.conf used under linux should also be optimized, otherwise the startup may report leak memory

4. By default, visitors cannot access any pages , you need to add anonymous access under the user management - "global permissions"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326171390&siteId=291194637