• 安装网络工具包

    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

标签: none

评论已关闭