# Web服务启停

在修改php参数等操作中，经常要去重启Web服务，下面做一个专门的说明：

## Linux系统

Linux下请通过WinSCP的命令终端窗口输入服务的启动、停止和重启操作

![](http://libs.websoft9.com/Websoft9/DocsPicture/zh/winscp/winscp-ucmd-websoft9.png)

### --LAMP

```
systemctl restart httpd  //重启http服务
systemctl stop httpd     //停止http服务
systemctl start httpd    //启动http服务
```

### --LNMP

```
systemctl restart nginx //重启nginx
systemctl restart php-fpm //重启php-fpm
```

## Windows系统

Windows下的镜像采用图形化界面实现服务的启动、停止和重启操作

### --IIS

进入IIS，点击主机名称，右侧的操作就会显示重启启动，停止等操作

![](http://libs.websoft9.com/Websoft9/DocsPicture/zh/iis/iis-restart-websoft9.png)

### --WAMPServer

远程桌面点击WAMPServer图标，然后点击“重新启动所有服务”

![](http://libs.websoft9.com/Websoft9/DocsPicture/zh/wampserver/wampserver-clicks-websoft9.png)


---

# 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://websoft9.gitbook.io/wordpress-image-guide/an-zhuang-he-pei-zhi/huan-jing-pei-zhi/web-fu-wu-qi-ting.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.
