zoukankan      html  css  js  c++  java
  • 03 centos7的基本价绍

    1 登录检查IP

     2 检查linux的内核 uname -r 

    补充介绍一下数字和字母的含义:第一个数字3表示主版本号,有结构性变化这里才会更改,接下来的数字10表示次版本号,新增功能时会变化,一般奇数表示测试,偶数表示开发,接下来的0表示版本的修订次数或者时补丁包数,975代表编译次数,每一次编译可对少数程序优化或者时修改,e17表示版本的特殊信息,有较大的随意性,el代表企业linux;pp代表测试;fc代表fedora core;rc表示候选版本;x86_64表示64位。

    3 查看网关ip route

    4  检查网络是否正常 使用ping命令:ping www.baidu.com

    4.1 网络不通

     

     

     

     

     可以正常上网了

     xshell  连接虚拟机

    xshell安装直接百度

    连接步骤:

    1 双击点开xshell工具,新建会话

     2 连接设置

     3 授权

     4 用户名

     5 密码

     6 配置 xshell的终端属性

     7 外观

     8配置xshell 的日志

     下载配置

     

     Centos 系统升级以及重要软件包安装

    1 安装下载工具wget

    yum install wget

    2 更改yum源

    curl -s -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo  #  官方提供

    curl -s -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo   #第三方提供的也就是咱们常说的 epel源

    3 更新系统软件

    yum update -y

    4 更新centos6和7都用的软件包

    yum install tree nmap dos2unix lrzsz nc lsof wget tcpdump htop iftop iotop sysstat nethogs -y

    5 更新7的软件包

    yum install psmisc net-tools bash-completion vim-enhanced -y 

    6 组包的检查 

    root@www ~]# yum groups mark convert
    [root@www ~]# yum grouplist #<==查看所有包组名称,包括已安装的和未安装的

    组包的安装

    yum groupinstall "Development Tools" -y
    yum groupinstall "Cinnamon" -y

    7 文件的上传、下载

    上传:rz

    下载:sz

    IP和端口和协议

    IP:唯一标识一台计算机(身份证)

    端口:不同软件运行的服务用端口区分

        计算机里唯一标识一个服务的数字

        我们要访问一台计算机拿到IP地址,找到对应的服务就需要端口

    协议:计算机之间的通信方式(计算机的交流语言),采用相同的通信协议

    端口与服务对应表

     

     连接基本名词以及功能对应的表格

    连接Linux的服务(SSH服务)

    ssh服务包含客户端和服务器

    服务端:软件openssh

    [root@mosson ~]# rpm -qa openssh openssl
    openssh-7.4p1-21.el7.x86_64
    openssl-1.0.2k-19.el7.x86_64

    服务端运行的ssh服务

    [root@mosson ~]# ps -ef|grep ssh
    root 1454 1 0 07:17 ? 00:00:00 /usr/sbin/sshd -D

    ssh服务运行的端口

    [root@mosson ~]# ss -lntup|grep ssh
    tcp LISTEN 0 128 *:22 *:* users:(("sshd",pid=1454,fd=3))
    tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1454,fd=4))

    快照:

    克隆:

     

     

    为克隆的主机修改ip地址

    nmtui 图形界面管理

     修改完成重启网卡

    systemctl restart network

  • 相关阅读:
    JavaScript操作符instanceof揭秘
    Linux打开txt文件乱码的解决方法
    Working copy locked run svn cleanup not work
    poj 2299 UltraQuickSort 归并排序求解逆序对
    poj 2312 Battle City 优先队列+bfs 或 记忆化广搜
    poj2352 stars 树状数组
    poj 2286 The Rotation Game 迭代加深
    hdu 1800 Flying to the Mars
    poj 3038 Children of the Candy Corn bfs dfs
    hdu 1983 Kaitou Kid The Phantom Thief (2) DFS + BFS
  • 原文地址:https://www.cnblogs.com/mosson/p/12400353.html
Copyright © 2011-2022 走看看