> For the complete documentation index, see [llms.txt](https://tarscloud.gitbook.io/tarsdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tarscloud.gitbook.io/tarsdocs/qi-ye-ban-ben-jie-shao/tars-other-service.md).

# 第三方服务管理

### 第三方服务部署

如果你的服务不是基于Tars实现的服务, 是通过其他方法实现的服务, 比如nginx或者其他服务, 你也可以通过Tars来管理服务, 主要是启停服务.

其他功能: 比如远程配置, 远程日志, 调用监控等功能就没有了.

### 如何配置

在部署服务的时候, 选择not\_tars类型, 然后此时, 需要配置启动脚本和停止脚本(停止脚本可以为空), 启动脚本就是启动你服务的脚本或者命令, 比如: `/usr/local/freeswitch/bin/freeswitch`

这样在管理平台上就可以正常启停服务了.

### 发布包

以上配置过程中, 你的服务是已经在服务器上安装好了的, 你如果希望同样通过上传发布包的形式来发布和启停服务, 你可以如下处理:

* 比如你有一个服务, 目录为: myserver, 目录下都是这个服务相关的文件, 其中main是主启动程序, 且启动方式为: main --start
* 则将`myserver`压缩成tgz包, 比如: `tar czf myserver.tgz myserver`
* 在界面上上传并发布 `myserver.tgz`
* 配置启动命令: `main --start`
* 停止命令如果没有可以不配置, 停止服务时, 会被tarsnode kill掉, 如果你的停止命令比较特殊, 也可以自行配置
* 程序运行后, stdout/stderr 都会被重定向到日志文件中, app\_log/app/server/app.server.log中

### 注意点

* 在同一台节点上配置第三方服务时,启动命令脚本不能相同, 否则会被判断为同一个程序


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tarscloud.gitbook.io/tarsdocs/qi-ye-ban-ben-jie-shao/tars-other-service.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
