> For the complete documentation index, see [llms.txt](https://websoft9.gitbook.io/wordpress-image-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://websoft9.gitbook.io/wordpress-image-guide/an-zhuang-he-pei-zhi/huan-jing-pei-zhi/web-fu-wu-qi-ting.md).

# 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)
