When installing confluence, the Confluence application and database is not on a server, the company moved the office during the last period of time, resulting in a change in the server IP, so that confluence will not start up, you need to modify the confluence connection to the database address, In fact, it is very simple to modify the address, mainly to find the Confluence connection database configuration file.
The first step is to find the Confluence installation directory, my installation directory in/opt/atlassian/
The second step, because confluence the Tomcat to transform, so confluence application is not under Workapps, but under the confluence
Usually our project configuration file in the Classes folder, so I found the/opt/atlassian/confluence/confluence/web-inf/classes this directory, See this directory below there is a confluence-init.properties file, feel like a general configuration file, open this file, found the last side of a line of code: Confluence.home =/var/atlassian/ Application-data/confluence, see the name of this directory, feel more reliable.
The third step, enter the Confluence.home configuration folder, open this folder to see There is a confluence.cfg.xml file, open this file, find the configuration of the database connection pool kind of things, really is found, this time modify Hibernate.connection.url value for the new database address restart.