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