我目前正在努力在 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/