linux systemctl命令
2024-09-05 02:51:54
systemctl 是系统服务管理器命令,它实际上将 service 和 chkconfig 这两个命令组合到一起。
任务 旧指令 新指令
使某服务自动启动 chkconfig --level 3 httpd on systemctl enable httpd.service
使某服务不自动启动 chkconfig --level 3 httpd off systemctl disable httpd.service
检查服务状态 service httpd status systemctl status httpd.service (服务详细信息) systemctl is-active httpd.service (仅显示是否 Active)
显示所有已启动的服务 chkconfig --list systemctl list-units --type=service
启动某服务 service httpd start systemctl start httpd.service
停止某服务 service httpd stop systemctl stop httpd.service
重启某服务 service httpd restart systemctl restart httpd.service
最新文章
- MySql 获取当前节点及递归所有上级节点
- 通过js获得选择文件的绝对路径
- CentOS系统配置redis
- LeetCode Reverse Linked List II 反置链表2
- ValueBar
- Java并发编程:sleep、wait、yield对比
- hdu3998 Sequence(最大流,LIS)
- NOI十连测 第六测 T1
- 深入理解final和static关键字
- Spring Data 整合 ElasticSearch搜索服务器
- php lcg_value与mt_rand生成0~1随机小数的效果比较
- eclispe安装tomcate没有srver解决
- 注册Activity
- 2013-2014 ACM-ICPC, NEERC, Southern Subregional Contest Problem H. Password Service dp
- [百度贴吧]10GB 通信线缆
- Windows Azure系列公开课 - 第二课:为什么选择Windows Azure(上)
- hadoop排序 -- 全排序
- python学习(八)定制类和枚举
- NB-IOT连接移动onenet平台流程
- python使用pika链接rabbitmq Connection reset by peer 解决办法
热门文章
- python字符串操作方法详解
- oracle的concat、convert、listagg函数(字符串拼接和类型转换)
- Unity热更新对比
- lua叠代器
- Linux 添加新磁盘 &;&; 创建分区 &;&; 挂载
- jsp 页面使用标签遍历
- Linux centosVMware Linux集群架构LVS DR模式搭建、keepalived + LVS
- CentOS7中Tomcat的安装和配置
- 39 (guava包)AbstractScheduledService的使用
- Indexed (materialized) views in SQL Server,different with Oracle (materialized) views