重启防火墙
service firewalld start/restart/stop

使用systemctl来启动/停止/重启服务
要启动一个服务,你需要使用如下命令:
# systemctl start httpd.service
这会启动httpd服务,就我们而言,Apache HTTP服务器。

要停掉它,需要以root身份使用该命令:
# systemctl stop httpd.service

要重启,你可以使用restart选项,如果服务在运行中,它将重启服务;如果服务不在运行中,它将会启动。你也可以使用try-start选项,它只会在服务已经在运行中的时候重启服务。同时,reload选项你也可以有,它会重新加载配置文件。
# systemctl restart httpd.service
# systemctl try-restart httpd.service
# systemctl reload httpd.service

你也可以使用enable/disable选项来控制一个服务是否开机启动,命令如下:
# systemctl enable httpd.service
# systemctl disable httpd.service

Linux – RedHat7 / CentOS 7 忘记root密码修改
http://www.cnblogs.com/mhten/p/4323228.html

相关文章:

  • 2021-09-23
  • 2021-07-14
  • 2022-01-15
  • 2021-09-15
  • 2021-06-10
  • 2022-03-04
  • 2021-10-15
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2021-06-04
  • 2021-12-29
  • 2021-12-15
  • 2021-12-21
  • 2021-07-10
  • 2021-08-08
相关资源
相似解决方案