Fedora常用命令

2013/03/18 | 星期一 分类:命令文档 | 没有评论 标签: , | 作者: | 1,272 views

# root权限下关闭Fedora
shutdow -h now

# apache mysql ssh 任务命令,以apache为例
# Fedora16开始,Redhat不再推荐ntsysv、chkconfig、service,而是建议使用新的服务管理工具systemctl
1.重启某服务 systemctl restart httpd.service #17以前命令 service httpd restart
2.停止某服务 systemctl stop httpd.service #17以前命令 service httpd stop
3.启动某服务 systemctl start httpd.service #17以前命令 service httpd start
4.显示已启动的服务 systemctl list-units –type=service
5.检测某服务 systemctl status httpd.service || systemctl is-active httpd.service #17以前命令 service httpd status
6.使某服务自动启动 systemctl enable httpd.service #17以前命令 chkconfig –level 3 httpd on
7.使某服务不自启动 systemctl disable httpd.service #17以前命令 chkconfig –level 3 httpd off 阅读全文