2019-09-10 Confluence 更改Server ID

一般是先建一个评估版的,试用license一个月到期的那种。到期后如果不想破解,就要去购买序列号。
不过有时候不小心手滑重装了虚拟机,或者哪里出错了导致server id不见了,那就比较麻烦了。但在Atlassian的账号里,有可能只能看到“Name”, 而不是评估版的Server ID,这就比较麻烦了。所以要把Server ID记下来放到安全的地方,免得还要去骚扰Atlassian的技术支持。
不过Atlassian的技术支持还是挺块的,当天就把我账号里的Server ID发回给我了,效率很高。
闲话少说,改Server ID其实挺简单的,要改两个地方。
1、配置文件:/var/atlassian/application-data/confluence/confluence.cfg.xml 这个是缺省位置,自定义的就是confluence的目录了。
找到这一句,改之。

XXXX-XXXX-XXXX-XXXX

2、改数据库。

[root@server]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2749616
Server version: 5.7.26 MySQL Community Server (GPL)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| confluence         |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.05 sec)

mysql> use confluence;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

mysql> select * from BANDANA where bandanakey = 'confluence.server.id';
+-----------+----------------+----------------------+--------------------------------------+
| BANDANAID | BANDANACONTEXT | BANDANAKEY           | BANDANAVALUE                         |
+-----------+----------------+----------------------+--------------------------------------+
|         1 | _GLOBAL        | confluence.server.id | XXXX-XXXX-XXXX-XXXX |
+-----------+----------------+----------------------+--------------------------------------+
1 row in set (0.00 sec)

mysql> update BANDANA set bandanavalue = 'XXXX-YYYY-XXXX-YYYY' where bandanakey = 'confluence.server.id';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> exit
Bye
[root@server101 local]#

改完重启服务,或者重启服务器,再进入Confluence 看看授权许可那里,如果没有授权码的话就把你自己那个授权码输进去就好了。

你可能感兴趣的:(2019-09-10 Confluence 更改Server ID)