重启防火墙
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

最新文章

  1. 虚机centos和本机Windows之间文件的拷贝无法用xftp时用FileZilla也行
  2. 服务器磁盘扩展卷时遭遇“There is not enough space available on the disk(s) to complete this operation.”错误
  3. CentOS安装oracle12C
  4. 并查集+关系的传递(poj 1182)
  5. “耐撕”团队 2016.04.06 站立会议
  6. shell脚本步骤调试
  7. linux系统
  8. CodeForces 416D (贪心)
  9. 在windows7中使用计划任务命令SCHTASKS查询计划任务失败的解决方案
  10. windows的路由例子
  11. DataReader、Table、DataSet和Entity相互转化
  12. linux学习过程中所需要看的一些书籍
  13. ubuntu16.04 安装搜狗输入法
  14. 使用PHPMailer发送带附件并支持HTML内容的邮件
  15. noip2016天天爱跑步
  16. Oracle物化视图,物化视图日志,增量刷新同步远程数据库
  17. Warning[w2]: Symbol ?P…
  18. oracle安装过程和创建本地数据库
  19. L2-022 重排链表 (25 分)
  20. TURN Server Windows 安装程序

热门文章

  1. .Net调用非托管代码数据类型不一致的问题
  2. Android的所有权限说明
  3. C++学习42 输入和输出的概念
  4. 《一课经济学》书摘笔记I
  5. esriSRProjCSType Constants
  6. Centos 7配置LAMP
  7. Mingyang.net:Controller必需是public吗?
  8. (转).NET代码混淆实践
  9. NoCache
  10. HDU1232畅通工程