zoukankan      html  css  js  c++  java
  • ssh服务远程管理主机

    一、管理服务命令systemctl

    1)systemctl管理服务的启动、重启、停止、重载、查看状态命令如下:

    sysvinit命令        systemctl命令          作用

    service foot start          systemctl start foot.service     启动服务

    service foot restart       systemctl restar foot.service  重启服务

    service foot stop      systemctl stop foot.service    重启服务

    service foot reload        systemctl reload foot.service   重新加载配置文件

    service foot status      systemctl status foot.service    查看服务状态

    2)systemctl设置服务开机启动、不启动、查看各级别下服务状态

    sysvinit命令        systemctl命令           作用

    chkconfig foot on       systemctl enable foot.service  开机自动启动

    chkconfig foot off       systemctl disable foot.service  开机不自动启动

    chkconfig foo        systemctl is-enabled foot.service  查看特定服务是否为开机自动启动

    chkconfig --list         systemctl list-unit-files --type=service  查看各级别下服务的启动与禁用状态

    二、监视资源与管理进程

    1)ps命令查看系统中进程的状态,格式为:ps -[参数]

    -a 显示所有信息

    2)top命令用于监视进程的活动与系统负载

    3)pidof命令用于查看系统某个特定进程的PID值,格式为:pidof [参数]  [程序名称]

    4)kill命令用于终止某个特定PID号的进程,格式为:kill [进程PID号]

    5)killall命令用于终止某个特定PID号的所有进程

    三、网卡参数配置

    1)使用vi 、vim编辑器配置网卡

    2)使用nmtui管理工具进入图形化界面配置网卡参数

    3)nmcli命令查看网卡信息,例:nmcli connection show查看网络连接信息,nmcli device stattus 查看网卡连接状态

    添加会话:nmcli connection add con-name company type ethernet ifname ens33

    启用公司会话:nmcli connection up conpany

    查看会话状态:nmcli connection show

  • 相关阅读:
    pytorch空间变换网络
    Jittor 的Op, Var算子
    元算子卷积层实现
    Caffe实现概述
    Halide视觉神经网络优化
    旷视MegEngine数据加载与处理
    旷视MegEngine网络搭建
    旷视MegEngine基本概念
    Torchvision模型微调
    新的一天
  • 原文地址:https://www.cnblogs.com/weiyuncai/p/8711815.html
Copyright © 2011-2022 走看看