CentOS常用命令
安装网络工具包
sudo yum install net-tools服务相关命令:
查看所有服务状态: systemctl list-units --type=service启动服务: systemctl start 服务名称.service停止服务: systemctl stop 服务名称.service重启服务: systemctl restart 服务名称.service查看服务状态: systemctl status 服务名称.service设置服务开机自启: systemctl enable 服务名称.service禁止服务开机自启: systemctl disable 服务名称.service重新加载服务配置: systemctl reload 服务名称.service重新读取所有服务单元的配置文件 systemctl daemon-reload
评论已关闭