TeamCity 用户名/密码

发布于 2024-09-29 11:19:22 字数 102 浏览 0 评论 0原文

你好 我很久以前就在我的家用电脑上安装了 teamcity。 我现在尝试再次重新使用它,但我忘记了管理员用户名和密码 是否有默认的管理员用户名? 我怎样才能得到密码?

感谢

Hi
I installed teamcity longtime ago, on my home computer.
I am trying to re-use it again now, but I forgot the admin username and password
Is there a default admin user name?
and how can I get the password?

Thank

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

扎心 2024-10-06 11:19:22

在 TeamCity 8 中,您可以以超级用户身份登录并以这种方式更改密码。您只需使用空用户名和在logs\teamcity-server.log 文件中找到的最后一次出现的“超级用户身份验证令牌”作为密码。

请参阅以下内容了解更多信息:

From TeamCity 8 you can log in as a super user and change the password that way. You just need to use an empty username and last occurrence of the "super user authentication token" found in the logs\teamcity-server.log file as your password.

Please see the following for more information:

寄风 2024-10-06 11:19:22

好的,您忘记了 teamcity 实例中的用户名和密码。
如何重置密码此处描述 .
如何获取用户名

  • 进入teamcity数据目录
  • 打开 config\database.properties 文件
  • ,其中有 connectionUrl 属性,该属性指向存储一些 teamcity 设置的数据库,
  • 看看 users table

更新

获得用户名后,您可以通过以下方式重置密码(复制自链接的答案):

  • 打开命令提示符并转到 \webapps\ROOT\WEB-INF\lib 文件夹
  • 运行以下命令:..\..\..\..\jre\bin\java.exe -cp server.jar;common-api.jar;commons-codec-1.3.jar;util.jar;hsqldb.jar 更改密码用户名新密码< /代码>

Ok, so you've forgot username and password in your teamcity instance.
How to reset password: described here.
How to get username:

  • go to the teamcity data directory
  • open config\database.properties file
  • there is connectionUrl property which points out to database which stores some teamcity settings
  • take a look at users table

Update

After you get the user name you can reset reset its password via the following(copied from linked answer):

  • Open a command prompt and go to \webapps\ROOT\WEB-INF\lib folder
  • Run the following: ..\..\..\..\jre\bin\java.exe -cp server.jar;common-api.jar;commons-codec-1.3.jar;util.jar;hsqldb.jar ChangePassword username newpassword
梅窗月明清似水 2024-10-06 11:19:22

仅供参考,不要遵循浏览 users 表的建议。 TeamCity 是一款优质产品,因此所有密码均经过加盐/散列处理(下面的 TC 9):

mysql [teamcity]> SELECT id,  password FROM users;
+-----+---------------------------------------------------+
|  id | password                                          |
+-----+---------------------------------------------------+
|  21 | k9d9yuE13FtQm8eT:1e24ad492777f94dec0c905127d1ea48 |
|  13 | m1l79Yy03hjoxKdA:199d1ea48e28a78bafde576dd88e6de7 |
|  85 | gOBpYHipOrtEGbUx:88f234847c07085798f9a4f8726e39df |
+-----+---------------------------------------------------+

FYI, don't follow the advice of going through the users table. TeamCity is a quality product, so all passwords are salted/hashed (TC 9 below):

mysql [teamcity]> SELECT id,  password FROM users;
+-----+---------------------------------------------------+
|  id | password                                          |
+-----+---------------------------------------------------+
|  21 | k9d9yuE13FtQm8eT:1e24ad492777f94dec0c905127d1ea48 |
|  13 | m1l79Yy03hjoxKdA:199d1ea48e28a78bafde576dd88e6de7 |
|  85 | gOBpYHipOrtEGbUx:88f234847c07085798f9a4f8726e39df |
+-----+---------------------------------------------------+
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文