After JIRA is installed, You have to restart Tomcat 6 every time you restart the server. This is really troublesome. I finally found the cause today.
The reason is that Jira needs to use SQL Server, but SQL server is not up yet. Find the cause and solve it. Adjust the service startup sequence or service dependency.
Update the HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ tomcat6 service in the registry, add a dependonservice multi-text key value in the base, and add MSSQLServer.
Warning if the registry is incorrectly modified using the Registry Editor or other methods, serious problems may occur. These problems may need to be solved by re-installing the operating system. Microsoft cannot solve these problems. You are at your own risk to modify the registry. Make sure that the corresponding registry key value has been backed up.
1. Run regedt32 (do not use Regedit) to open the registry and find the service you want to start. All services are in HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \
For example, if the service name of Windows Search is wsearch, the corresponding Registry location is HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ wsearch.
2. find the key value "group" in the following format. The type is string (reg_sz ). if not, it indicates that the service does not belong to any ServiceGroup. You need to add a string (reg_sz) named "group" and double-click it to edit it, define a group name (do not repeat the original ServiceGroup)
3. Record the group values of the services you need.
4. open HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ servicegrouporder. The list of list key values is the order in which the Group runs, that is, the order in which services of these groups run. to modify the startup sequence, you only need to adjust the row sequence of the group. if it is a custom group, add a row.