# 4.7.安装后的注意事项

无论软件是通过二进制包还是 Ports 安装，大多数第三方应用程序在安装后都需要进行一定程度的配置。以下命令和位置可以帮助确定应用程序安装了哪些内容。

* 大多数应用程序至少会在 `/usr/local/etc` 中安装一个默认的配置文件。如果应用程序有大量配置文件，则会创建一个子目录来存放这些文件。通常，示例配置文件会以 `.sample` 后缀结尾。应该查看并根据系统的需要编辑这些配置文件。要编辑示例文件，首先将其复制到没有 `.sample` 后缀的文件名。
* 提供文档的应用程序会将文档安装到 `/usr/local/share/doc` 目录中，许多应用程序还会安装手册页。应该在继续操作之前参考这些文档。
* 一些应用程序运行服务，在启动应用程序之前，必须将其添加到 `/etc/rc.conf` 中。这些应用程序通常会在 `/usr/local/etc/rc.d` 中安装启动脚本。有关更多信息，请参阅 [启动服务](https://docs.freebsd.org/en/books/handbook/config/#configtuning-starting-services)。

  > **注意**
  >
  > 按设计，应用程序在安装时不会自动运行其启动脚本，也不会在卸载或升级时运行其停止脚本。这一决定由系统管理员自行决定。
* 使用 [csh(1)](https://man.freebsd.org/cgi/man.cgi?query=csh\&sektion=1\&format=html) 的用户应运行 `rehash` 以重新构建 shell 的已知二进制文件列表。
* 使用 `pkg info` 命令可以确定与应用程序一起安装的文件、手册页和二进制文件。


---

# Agent Instructions: 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:

```
GET https://handbook.bsdcn.org/di-4-zhang-an-zhuang-ying-yong-cheng-xu-ruan-jian-bao-he-ports/4.7.-an-zhuang-hou-de-zhu-yi-shi-xiang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
