# centos7.4重启nginx、php-fpm、Apache、mysql命令

**URL:** <https://www.shiqidu.com/t/topic/313>\
**Category:** 开发调优\
**Tags:** CentOS\
**Created:** [2017 年11 月 25 日 07:39 UTC](https://www.shiqidu.com/t/topic/313 "2017-11-25T07:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![yeqiu](https://www.shiqidu.com/user_avatar/www.shiqidu.com/yeqiu/32/14_2.png) [@yeqiu](https://www.shiqidu.com/u/yeqiu)\
发布日期： [2017 年11 月 25 日 07:39 UTC](https://www.shiqidu.com/t/topic/313/1 "2017-11-25T07:39:49Z")

</div>

### nginx

启动

```bash
systemctl start nginx      

```

停止

```bash
systemctl stop nginx      

```

重启

```bash
systemctl restart nginx      

```

* * *

### mysql

启动

```bash
systemctl start mysqld      

```

停止

```bash
systemctl stop mysqld      

```

重启

```bash
systemctl restart mysqld      

```

* * *

### php-fpm(重启php)

启动

```bash
systemctl start php-fpm      

```

停止

```bash
systemctl stop php-fpm      

```

重启

```bash
systemctl restart php-fpm      

```

* * *

### apache

启动

```bash
systemctl start httpd      

```

停止

```bash
systemctl stop httpd      

```

重启

```bash
systemctl restart httpd      

```
