centos 7系列一些不同的命令用法介绍

1、查看服务是否开机自启动和添加、删除开机自启动

添加开启自启动
#systemctlenablehttpd.service
关闭开启自启动
#systemctldisablehttpd.service
检查服务状态
#systemctlstatushttpd.service
检查是否处于Active状态
#systemctlis-activehttpd.service

显示所有已经启动的服务
#systemctllist-units--type=service
显示所有服务的状态,相当于chkconfig--list
#systemctllist-unit-files|grepenabled

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...