centos 7中关于服务管理相关变化

来源:互联网 发布:时时彩源码论坛 编辑:程序博客网 时间:2024/06/06 02:54

刚刚使用centos 7的时候,多数朋友会用的不是很顺手,尽管多了许多神乎其神的功能,但是对于基础的服务管理与网络管理方面的变化,还是让人褒贬不一。在centos7中,chkconfig与service命令没有之前那么好用,取而代之的是systemctl命令,这个强大的命令是一个系统管理守护进程、工具和库的集合。

任务旧命令新命令使某服务自动启动chkconfig httpd onsystemctl enable httpd.service使某服务不自动启动chkconfig httpd offsystemctl disable httpd.service检查服务状态service httpd statussystemctl status httpd.service 启动某服务service httpd startsystemctl start httpd.service停止某服务service httpd stopsystemctl stop httpd.service重启某服务service httpd restartsystemctl restart httpd.service显示所有已启动的服务chkconfig –listsystemctl list-unit-files|grep enabled对于命令的熟悉还需要在不断使用中提高。

0 0