<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 批量安裝系統-cobbler [TOC] ## 1 環境準備 ### 1.1 簡介 cobbler可以理解為是kickstart的升級版,將其封裝并了個web界面,可以附帶管理DHCP,DNS等,提供了API接口可供二次開發. 官網:https://cobbler.github.io ### 1.2 系統信息 ``` cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) uname -r 3.10.0-693.el7.x86_64 hostname -I 10.0.0.201 172.16.1.201 ``` ### 1.3 防火墻、selinux ``` sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config setenforce 0 systemctl stop firewalld.service systemctl disable firewalld.service ``` ## 2 安裝cobbler ### 2.1 安裝阿里云源 ``` curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo ``` 已配置過第三方源可忽略此步驟 ### 2.2 安裝和啟動cobbler ``` yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd python-django systemctl start cobblerd.service systemctl start httpd.service ``` ### 2.3 配置cobbler 1) 校驗命令 ``` cobbler check ``` 檢查后會提示需要修改的地方,根據提示進行修改 2) 根據提示修改 ``` sed -i '/^server/ s#127.0.0.1#172.16.1.201#g' /etc/cobbler/settings sed -i '/^next_server/ s#127.0.0.1#172.16.1.201#g' /etc/cobbler/settings sed -ri 's#(.*disable.*= )yes#\1no#g' /etc/xinetd.d/tftp cobbler get-loaders ``` 3) 讓cobbler管理dhcp ``` sed -i 's/manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/settings sed -i.ori 's#192.168.1#172.16.1#g;22d;23d' /etc/cobbler/dhcp.template ``` 4) 防止誤重裝 ``` sed -i 's/pxe_just_once: 0/pxe_just_once: 1/' /etc/cobbler/settings ``` 5) 啟動關聯服務 ``` systemctl start rsyncd.service systemctl enable rsyncd.service systemctl start tftp.socket systemctl enable tftp.socket ``` 6) 提交修改 ``` cobbler sync ``` 仍然有個別提示,其中包括更改密碼的要求,生成環境的話根據要求修改密碼 7) 重啟所有服務 ``` systemctl restart cobblerd.service httpd.service rsyncd.service tftp.socket systemctl is-active cobblerd.service httpd.service rsyncd.service tftp.socket ``` ## 3 web端操作 ### 3.1 基礎配置 1) 基礎信息 網址:https://10.0.0.201/cobbler_web 賬號密碼:cobbler cobbler 掛載光盤:mount /dev/cdrom /mnt ### 3.2 導入光盤 點擊actions-->import菜單導入光盤 ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232217685.png) ### 3.3 創建配置文件 ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232225711.png) ### 3.4 匹配配置文件 ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232234931.png) 至此,新建虛擬機,開機后通過通過網絡已經可以獲得選擇菜單,選擇版本后即可自動安裝,如果還要做的開機后直接安裝,不選擇版本且按要求配置網絡參數的話,還需要接下來這一步 ### 3.5 配置全自動安裝[非必須] ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232243181.png) ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232252630.png) ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232300123.png) ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232306903.png) ![mark](http://noah-pic.oss-cn-chengdu.aliyuncs.com/pic/20200410/232314286.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看