[svc]centos7的服务治理-systemd
任务 | 旧指令 | 新指令 |
---|---|---|
哪些服务正在跑? | chkconfig --list\grep 3:on | systemctl list-units --type=service |
哪些服务开机会自启动? | chkconfig --list | systemctl list-unit-files --type=service |
使httpd开机自启动 | chkconfig --level 3 httpd on | systemctl enable httpd.service |
使httd开机不自启动 | chkconfig --level 3 httpd off | systemctl disable httpd.service |
查看httpd现在是否启动着 | service httpd status | systemctl status httpd.service (服务详细信息) |
启动某服务 | /etc/init.d/httpd start | systemctl start httpd.service |
停止某服务 | /etc/init.d/httpd stop | systemctl stop httpd.service |
重启某服务 | /etc/init.d/httpd restart | systemctl restart httpd.service |
相关推荐
云中舞步 2020-11-12
杨德龙 2020-11-11
JohnYork 2020-10-16
wangzhaotongalex 2020-09-22
xiaoseyihe 2020-11-16
不要皱眉 2020-10-14
Crazyshark 2020-11-13
K先生 2020-11-10
momode 2020-09-11
思君夜未眠 2020-09-04
点滴技术生活 2020-08-21
MaggieRose 2020-08-19
kevinweijc 2020-08-18
wintershii 2020-08-17
vapaad 2020-08-17
wera00 2020-08-17
移动开发与培训 2020-08-16
ReunionIsland 2020-08-16
JimyFengqi 2020-08-16