• 镜像挂载


    1 vi /etc/sysconfig/network-scripts/ifcfg-eno1
    2 shutdown -h now
    3 mkdir /mnt/{iso,cdrom}
    4 df -h
    5 mount -o loop /mnt/iso/CentOS-7-x86_64-DVD-1908.iso /mnt/cdrom
    6 df -h
    7 cd
    8 cd /etc/yum.repos.d/
    9 ll -a
    10 mkdir bak
    11 mv * bak
    12 ll -a
    13 yum list
    14 umount /mnt/cdrom/
    15 mount -o loop /mnt/iso/CentOS-7-x86_64-Everything-2009.iso /mnt/cdrom
    16 df -h
    17 cd /mnt/
    18 ll -a
    19 cd iso/
    20 ll -a
    21 rm -rf CentOS-7-x86_64-DVD-1908.iso
    22 mount -o loop /mnt/iso/CentOS-7-x86_64-Everything-2009.iso /mnt/cdrom
    23 vi /etc/sysconfig/network-scripts/ifcfg-eno1
    24 service network restart
    25 netstat -tlnp
    26 mount -o loop /mnt/iso/CentOS-7-x86_64-Everything-2009.iso /mnt/cdrom/
    27 df -h
    28 netstat -tlnp
    29 /mysql/service/mysql-5.7.28/bin/mysql -uroot -p'root$123' -e"update zeus.cloud_node set valid_flag=1;"
    30 service vesta stop
    31 service vesta start
    32 ps -aux | grep httpd
    33 yum install httpd -y
    34 ll -a
    35 netstat -tlnp
    36 service httpd start
    37 netstat -tlnp
    38 mkdir -p /var/www/html/centos7
    39 mount /mnt/iso/CentOS-7-x86_64-Everything-2009.iso /var/www/html/centos7
    40 vi /etc/yum.repos.d/base.repo
    41 yum list
    42 df -h
    43 umount /mnt/cdrom/
    44 ll -a
    45 df -h
    46 yum list
    47 scp /etc/yum.repos.d/base.repo 10.118.8.81:/etc/yum.repos.d/
    48 scp /etc/yum.repos.d/base.repo 10.118.8.82:/etc/yum.repos.d/
    49 scp /etc/yum.repos.d/base.repo 10.118.8.84:/etc/yum.repos.d/
    50 scp /etc/yum.repos.d/base.repo 10.118.8.85:/etc/yum.repos.d/
    51 scp /etc/yum.repos.d/base.repo 10.118.8.86:/etc/yum.repos.d/
    52 scp /etc/yum.repos.d/base.repo 10.118.8.87:/etc/yum.repos.d/
    53 scp /etc/yum.repos.d/base.repo 10.118.8.88:/etc/yum.repos.d/
    54 scp /etc/yum.repos.d/base.repo 10.118.8.89:/etc/yum.repos.d/
    55 scp /etc/yum.repos.d/base.repo 10.118.8.90:/etc/yum.repos.d/
    56 scp /etc/yum.repos.d/base.repo 10.118.8.91:/etc/yum.repos.d/
    57 scp /etc/yum.repos.d/base.repo 10.118.8.93:/etc/yum.repos.d/
    58 scp /etc/yum.repos.d/base.repo 10.118.8.92:/etc/yum.repos.d/
    59 scp /etc/yum.repos.d/base.repo 10.118.8.90:/etc/yum.repos.d/
    60 cd /etc/yum.repos.d/
    61 ll -a
    62 ip a
    63 reboot
    64 history
    65 mount /mnt/iso/CentOS-7-x86_64-Everything-2009.iso /var/www/html/centos7
    66 netstat -tlnp
    67 service httpd start
    68 /bin/systemctl start httpd.service
    69 netstat -tlnp
    70 netstat -tlnp
    71 ps -ef|grep redis
    72 netstat -tlnp
    73 ll -a
    74 netstat -tlnp
    75 df -h
    76 netstat -tlnp
    77 free -h
    78 ls
    79 cd ..
    80 ls
    81 cd etc/
    82 ls
    83 cd yum.repos.d/
    84 ls
    85 scp base.repo 10.118.8.90:/etc/yum.repos.d/
    86 scp base.repo 10.118.8.92:/etc/yum.repos.d/
    87 scp base.repo 10.118.8.94:/etc/yum.repos.d/
    88 scp base.repo 10.118.8.90:/etc/yum.repos.d/
    89 ping 10.118.8.90
    90 scp base.repo 10.118.8.90:/etc/yum.repos.d/
    91 scp base.repo 10.118.8.93:/etc/yum.repos.d/
    92 scp base.repo 10.118.8.92:/etc/yum.repos.d/
    93 ll -a
    94 cat base.repo
    95 ls
    96 cd ..
    97 cd
    98 ls
    99 cd ..
    100 ls
    101 cd usr/
    102 ls
    103 cd local/
    104 ls
    105 cd /
    106 ls
    107 cd app
    108 ls
    109 reboot
    110 netstat -tlnp
    111 ip a
    112 find / -name *.iso
    113 cd /etc/sysconfig/network-scripts/
    114 ll -a
    115 cat ifcfg-eno1
    116 cd /etc/yum
    117 yum list
    118 cat /etc/sysconfig/network-scripts/ifcfg-eno1
    119 cd /mnt/
    120 ll -a
    121 history
    122 mount /mnt/iso/CentOS-7-x86_64-Everything-2009.iso /var/www/html/centos7
    123 netstat -tlnp
    124 service httpd start
    125 /bin/systemctl start httpd.service
    126 free -h
    127 df -h
    128 cd /var/www/html/
    129 ll -a
    130 cd centos7/
    131 ll -a

  • 相关阅读:
    记录——framework探测定位程序集与core探测定位程序集
    C# 特定框架适用特定代码
    python读取excel代码
    时间比较
    ORA 01791错误
    MongoDB.1什么是MongoDB
    Mayatis 异常之result maps collection already contains value...
    怎样做好黄焖鸡
    关于foreach
    C#之out,ref关键字
  • 原文地址:https://www.cnblogs.com/zzl0916/p/14516482.html
Copyright © 2020-2023  润新知