久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      實(shí)驗(yàn)自動(dòng)化安裝教程

      讓電腦自動(dòng)完成安裝,我們要把分區(qū)、root口令等告訴電腦,我們用一個(gè)(應(yīng)答文件的文本文件)將設(shè)置寫入其中,讓安裝向?qū)д业皆搼?yīng)答文件即可自動(dòng)安裝。
      準(zhǔn)備素材:centos7、centos7mini(最小化安裝版本)

        ##### A、[root@localhost ~]# ls  anaconda-ks.cfg  此文件anaconda-ks.cfg為記錄了我們是如何安裝系統(tǒng)的。  ##### B、將網(wǎng)卡配置文件的  onboot  改為  yes  [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33  TYPE=Ethernet  PROXY_METHOD=none  BROWSER_ONLY=no  BOOTPROTO=dhcp  DEFROUTE=yes  IPV4_FAILURE_FATAL=no  IPV6INIT=yes  IPV6_AUTOCONF=yes  IPV6_DEFROUTE=yes  IPV6_FAILURE_FATAL=no  IPV6_ADDR_GEN_MODE=stable-privacy  NAME=ens33  UUID=bd070b36-c892-43b7-a8c8-d179b44c1d3c  DEVICE=ens33  ONBOOT=yes  ~              [root@localhost ~]# systemctl restart network    ##### C、主機(jī) centos7 ssh上遠(yuǎn)程的 centos7mini  [root@centos7 ~]# ssh 192.168.58.133  root@192.168.58.133's password:   Last login: Wed Jan 30 12:49:40 2019 from 192.168.58.1  [root@localhost ~]# scp anaconda-ks.cfg  192.168.58.254:/data  root@192.168.58.254's password:   anaconda-ks.cfg                100% 1421   120.3KB/s   00:00      [root@localhost ~]# exit  logout  Connection to 192.168.58.133 closed.  此處是將 anaconda-ks.cfg 文件拷貝到主機(jī)上    ##### D、我們可以把 anaconda-ks.cf 文件當(dāng)做最小化安裝的模板。如下:  [root@centos7 ~]# cd /data  [root@centos7 data]# ls  anaconda-ks.cfg  hallo.sh  magedu.pubkey  [root@centos7 data]# vim anaconda-ks.cfg   #version=DEVEL                                                     # System authorization information  auth --enableshadow --passalgo=sha512  # Use CDROM installation media  cdrom  # Use graphical install  graphical  # Run the Setup Agent on first boot  firstboot --enable  ignoredisk --only-use=sda  # Keyboard layouts  keyboard --vckeymap=us --xlayouts='us'  # System language  lang en_US.UTF-8    # Network information  network  --bootproto=dhcp --device=ens33 --onboot=off --ipv6=auto --no-activate  network  --hostname=localhost.localdomain    # Root password  rootpw --iscrypted $6$V2eP8pESlfKIToP8$NVcSm0geeSV4X1cd1lccrs9FAdK1rbj6EczSviVmoz75Znj5GaI.qY7jA0H1dmbh.hsI2ZIHtaR3Ko0/Xku9B1  # System services  services --disabled="chronyd"  # System timezone  timezone Asia/Shanghai --isUtc --nontp  "anaconda-ks.cfg" 48L, 1421C                   1,1           Top    ##### E、此時(shí)我們要先安裝圖像界面的文件,如下:  [root@centos7 data]# yum install system-config-kickstart  Loaded plugins: fastestmirror, langpacks  Loading mirror speeds from cached hostfile  base                                      | 3.6 kB     00:00       epel                                      | 4.7 kB     00:00       (1/2): epel/updateinfo                      | 954 kB   00:00       (2/2): epel/primary_db                      | 6.6 MB   00:01       Dependency Installed:    gnome-python2.x86_64 0:2.28.1-14.el7                               gnome-python2-canvas.x86_64 0:2.28.1-14.el7                        libart_lgpl.x86_64 0:2.3.21-10.el7                                 libgnomecanvas.x86_64 0:2.30.3-8.el7                               rarian.x86_64 0:0.8.1-11.el7                                       rarian-compat.x86_64 0:0.8.1-11.el7                                system-config-date.noarch 0:1.10.6-3.el7.centos                    system-config-date-docs.noarch 0:1.0.11-4.el7                      system-config-keyboard.noarch 0:1.4.0-5.el7                        system-config-keyboard-base.noarch 0:1.4.0-5.el7                   system-config-language.noarch 0:1.4.0-9.el7                        usermode-gtk.x86_64 0:1.111-5.el7                                  Complete!    ##### F、我們可以利用網(wǎng)絡(luò),搭建一個(gè)網(wǎng)絡(luò)服務(wù)器,按照httpd的做法,

      [root@centos7 ~]# rpm -ql httpd
      /etc/httpd
      /etc/httpd/conf
      /etc/httpd/conf.d
      /etc/httpd/conf.d/README
      /etc/httpd/conf.d/autoindex.conf
      /etc/httpd/conf.d/userdir.conf
      /etc/httpd/conf.d/welcome.conf
      /etc/httpd/conf.modules.d
      /etc/httpd/conf.modules.d/00-base.conf
      /etc/httpd/conf.modules.d/00-dav.conf
      /etc/httpd/conf.modules.d/00-lua.conf
      /etc/httpd/conf.modules.d/00-mpm.conf
      /etc/httpd/conf.modules.d/00-proxy.conf
      /etc/httpd/conf.modules.d/00-systemd.conf
      /etc/httpd/conf.modules.d/01-cgi.conf
      /etc/httpd/conf/httpd.conf
      /etc/httpd/conf/magic
      /var/www
      /var/www/cgi-bin
      /var/www/html
      將httpd服務(wù)啟動(dòng)起來:
      [root@centos7 ~]# systemctl start httpd
      [root@centos7 ~]# cd /var/www/html
      [root@centos7 html]# mkdir centos/{6,7}/os/x86_64/ -pv
      [root@centos7 html]# tree
      .
      ├── app
      │?? ├── 6
      │?? │?? └── x86_64
      │?? └── 7
      │?? └── x86_64
      └── centos
      ├── 6
      │?? └── os
      │?? └── x86_64
      └── 7
      └── os
      └── x86_64

      12 directories, 0 files
      [root@centos7 html]# mount /dev/sr0 centos/7/os/x86_64/
      mount: /dev/sr0 is write-protected, mounting read-only

        ##### G、此時(shí),我們可以去互聯(lián)網(wǎng)訪問主機(jī)了,如下:    http://192.168.58.254/centos/7/    Index of /centos/7    [ICO]   Name    Last modified   Size    Description  [PARENTDIR] Parent Directory        -      [DIR]   os/ 2019-01-05 14:39    -      我們輸入如下命令:  [root@centos7 ~]# system-config-kickstart  這是圖形界面,我們可以在彈出的頁面中設(shè)置文件    ##### H、我們把centos7mini里的文件拷貝到centos7 上  [root@centos7 ~]# cd /data  [root@centos7 data]# ls  anaconda-ks.cfg  hallo.sh  magedu.pubkey  [root@centos7 data]# mkdir /var/www/html/ks/; cp anaconda-ks.cfg /var/www/html/ks/centos7-mini.cfg    ##### L、我們進(jìn)入ks文件中查看  [root@centos7 data]# cd /var/www/html/ks  [root@centos7 ks]# ls  centos7-mini.cfg  [root@centos7 ks]# ll  total 4  -rw------- 1 root root 1421 Jan 30 22:10 centos7-mini.cfg  [root@centos7 ks]# chmod a+r centos7-mini.cfg   [root@centos7 ks]# ll  total 4  -rw-r--r-- 1 root root 1421 Jan 30 22:10 centos7-mini.cfg  效果如下:

      http://192.168.58.254/ks/centos7-mini.cfg

      #version=DEVEL

      System authorization information

      auth –enableshadow –passalgo=sha512

      Use CDROM installation media

      cdrom

      Use graphical install

      graphical

      Run the Setup Agent on first boot

      firstboot –enable
      ignoredisk –only-use=sda

      Keyboard layouts

      keyboard –vckeymap=us –xlayouts='us'

      System language

      lang en_US.UTF-8

      Network information

      network –bootproto=dhcp –device=ens33 –onboot=off –ipv6=auto –no-activate
      network –hostname=localhost.localdomain

      Root password

      rootpw –iscrypted $6$V2eP8pESlfKIToP8$NVcSm0geeSV4X1cd1lccrs9FAdK1rbj6EczSviVmoz75Znj5GaI.qY7jA0H1dmbh.hsI2ZIHtaR3Ko0/Xku9B1

      System services

      services –disabled="chronyd"

      System timezone

      timezone Asia/Shanghai –isUtc –nontp
      user –name=wang –password=$6$5MKCrWhZLuuC30QZ$X7fRD6I.5TrvmUNm4tDS6TmTZua/uer6Sn2EzXBv/Bk307pkanOOn9pyilJxT/cs9jxpXMBnAzHChvgPbb8Qe. –iscrypted –gecos="wang"

      System bootloader configuration

      bootloader –append=" crashkernel=auto" –location=mbr –boot-drive=sda
      autopart –type=lvm

      Partition clearing information

      clearpart –none –initlabel

      %packages@^minimal<br "="" rel="nofollow">br>@^minimal
      kexec-tools

      %end

      %addon com_redhat_kdump –enable –reserve-mb='auto'

      %end
      %anaconda
      pwpolicy root –minlen=6 –minquality=1 –notstrict –nochanges –notempty
      pwpolicy user –minlen=6 –minquality=1 –notstrict –nochanges –emptyok
      pwpolicy luks –minlen=6 –minquality=1 –notstrict –nochanges –notempty
      %end

        

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)