tomcat - Teamcity 不使用 Debians tomcat7 包启动

标签 tomcat teamcity

我目前正在努力在 Tomcat7 上设置 TeamCity:

Unable to initialize logs. The logs directories are not accessible for writing. TeamCity server process does not have enough permissions to write into the log files under the directory: /var/lib/tomcat7/../logs Please fix permissions and restart TeamCity. You can read more about TeamCity logs in documentation.

当我通过下载 apache-tomcat*.tar.gz 文件手动安装 Tomcat 并启动 servlet 容器时,一切正常。尽管如此,我还是决定使用 Debian 提供的 tomcat7 包并通过以下方式安装它:

apt-get install tomcat7

遗憾的是,TeamCity 的 Debian 软件包版本似乎有问题,无法启动。

在此 tomcat7 版本中运行 TeamCity 的必要步骤是什么?

最佳答案

您应该将日志目录设置到某个位置,TeamCity 将能够写入。有 the documentation section描述一般日志记录配置。

编辑

将系统属性 -Dteamcity_logs=../logs/ 与所需的日志目录一起使用

关于tomcat - Teamcity 不使用 Debians tomcat7 包启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18527631/

相关文章:

java - 使用 Intellij 10.X 和 tomcat 6.X 修改后热部署 JSP

teamcity - 为什么在 TeamCity 上运行 MSpec 时会收到 NotSupportedException?

git - 将 TeamCity VCS 提交转换为修改 ID

asp.net - 推荐的下载远程SQL Server数据库的方法

java - 使用 Java 6 的嵌入式 http 服务器进行 IPC

java - HttpSession getAttribute() 返回 null

apache - 构建无单点故障且容错的应用程序堆栈

java - 如何从 linux 服务器 java web 应用程序访问本地路径?

TeamCity Rest API - 运行自定义构建

svn - 我的源代码管理文件在 Linux for TeamCity 中的位置