# 脚本参数

smartping采用脚本调用方式运行，Linux使用 ./control , Windows使用 control.cmd

## Linux

&#x20;**./control**

```
build|run|start|stop|restart|status

build   : 源码编译，最终构建成至 bin
run     : 直接启动smartping
start   : 以nohup(deamon)形式启动smartping
stop    : 关闭smartping
restart : 执行 stop & start
status  : 查看smartping的运行状态
version : 查看当前smartping版本
pack    : 执行Build并进行二进制包制作
```

## Windows

&#x20;**control.cmd**&#x20;

```
build|run|install|start|stop|restart|version

build   : 源码编译，最终构建成至 bin
run     : 直接启动smartping
install : 使用nssm将smartping安装为服务
start   : 启动smartping服务
stop    : 关闭smartping服务
restart : 执行 stop & start
version : 显示当前smartping版本
```


---

# 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://docs.smartping.org/install/control.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.
